ov121 β€” overlay detail

DS game only γ¨γ‚“γŒγ‚Šγƒœγ‚¦γ‚·γ¨γŠγ—γ‚ƒγ‚Œγͺまほう぀かい The field guide documents the DS game's internals.

containers: 2d/scrollbar.ofs

ov121 general_2d_ui

containers: 2d/scrollbar.ofs

Header

Numeric metadata for this overlay as read from the overlay table at ROM offset 0x8DE00 (per-entry stride 32 bytes). Function counts, data-item counts, and the call-graph fan-out are from a Ghidra 11.3.1 headless auto-analysis pass.

Overlay ID 121
File ID 121
RAM load address 0x021601c0
RAM size 5,312 bytes (0x14c0)
BSS size 0 bytes
On-disk compressed size 4,276 bytes
Compression flag 0x1 (BLZ-compressed)
Functions 28
External calls 31
Jump tables 0
Data items 34
Code coverage 65% (3,468 of 5,312 bytes)

Reading the binary

The overlay ships on the cart at file ID 121 under the BLZ code-LZ compression wrapper (the same backward-LZ scheme Nintendo uses for executable ARM9 code). At load time the engine reads the overlay table entry at ROM offset 0x8DE00 + 121 * 0x20, allocates the destination RAM region at 0x021601c0, decompresses the body in-place (if compressed), and resolves any external relocations.

To inspect this overlay outside the running game, decompress overlay/overlay_121.bin with ndspy.codeCompression.decompress() (Python ndspy library) and load the resulting plaintext into Ghidra or IDA at base address 0x021601c0. The raw Ghidra auto-analysis dump used to populate this page lives at notes/overlay_knowledgebase/raw/ov121.json; the per-overlay descriptive markdown is at notes/overlay_knowledgebase/ov121.md.

Embedded strings

1 UTF-16 LE string live inside this overlay's compiled binary. These addresses are absolute (inside the overlay's RAM image after load). The text is stored as little-endian UTF-16 code units, NUL-terminated.

0x021610dc `ι¨‡ι¬ˆι˜†γƒ€`

Container references

Distinct container basenames referenced by this overlay. Each is loaded via the content cache by passing the basename string to a lookup that resolves it to a file ID in the ROM's FAT. The path column shows the file's location in the clean extract, where resolved.

Unresolved

These container basenames appeared in the overlay's string table but no file of that name was found in the clean extract. Most are false-positive ASCII matches (function names, register maps, fragments of other strings); a few may be containers that the overlay names but never actually opens. Listed for completeness.

Function list

Functions Ghidra auto-identified inside this overlay's RAM range. Names prefixed FUN_ are auto-generated from the function's entry address; size is in bytes; the "calls" column counts both intra-overlay branches and external ARM9 call targets. The "strings" column counts how many UTF-16 LE strings each function references.

Show all 28 functions
# Address Size Calls Strings Role hint
1 0x021601c0 942 19 2 refs: 2d/scrollbar.ofs \| 2d/scrollbar.ofs
2 0x02160584 6 0 0 trampoline / small helper
3 0x02160594 56 1 0 code
4 0x021605d0 16 0 0 trampoline / small helper
5 0x021605e0 16 0 0 trampoline / small helper
6 0x021605f0 116 3 0 code
7 0x02160ab4 20 0 0 trampoline / small helper
8 0x02160ac8 40 0 0 code
9 0x02160af0 466 41 0 high-fan-out (likely dispatcher / setup)
10 0x02160dc8 30 1 0 trampoline / small helper
11 0x02160ef4 20 2 0 trampoline / small helper
12 0x02160f08 36 1 0 trampoline / small helper
13 0x02160f2c 94 4 0 code
14 0x02160f94 172 12 0 code
15 0x02161044 44 1 0 code
16 0x02161070 148 11 0 code
17 0x02161108 278 14 0 code
18 0x02161228 42 3 0 code
19 0x02161254 20 1 0 trampoline / small helper
20 0x0216126c 112 9 0 code
21 0x021612dc 68 4 0 code
22 0x02161320 20 1 0 trampoline / small helper
23 0x02161338 68 1 0 code
24 0x0216137c 66 1 0 code
25 0x021613c4 214 2 0 code
26 0x021614a0 310 10 0 code
27 0x021615dc 36 0 0 trampoline / small helper
28 0x02161604 12 1 0 trampoline / small helper

Open questions & conflicts

Open questions / unknowns

Conflicts with the prior shallow pass

Source