ov040 β€” overlay detail

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

containers: pc_shop/redecoration/inner/iet.lzs, pc_shop/redecoration/inner/pack1gcmn.lzs, pc_shop/redecoration/inner/pack1gseled.lzs (+4 more)

ov040 general_2d_ui

containers: pc_shop/redecoration/inner/iet.lzs, pc_shop/redecoration/inner/pack1gcmn.lzs, pc_shop/redecoration/inner/pack1gseled.lzs (+4 more)

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 40
File ID 40
RAM load address 0x02155a00
RAM size 7,520 bytes (0x1d60)
BSS size 0 bytes
On-disk compressed size 5,396 bytes
Compression flag 0x1 (BLZ-compressed)
Functions 11
External calls 34
Jump tables 1
Data items 127
Code coverage 27% (2,016 of 7,520 bytes)

Reading the binary

The overlay ships on the cart at file ID 40 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 + 40 * 0x20, allocates the destination RAM region at 0x02155a00, decompresses the body in-place (if compressed), and resolves any external relocations.

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

Embedded strings

2 UTF-16 LE strings 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.

0x02156651 `狢蓻怠ぃ`
0x02156a09 `離蓹怠ぃ`

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 11 functions
# Address Size Calls Strings Role hint
1 0x02155a84 12 1 0 trampoline / small helper
2 0x02155a90 506 13 0 code
3 0x021565a0 6 0 0 trampoline / small helper
4 0x021565a8 16 0 0 trampoline / small helper
5 0x021565b8 16 1 0 trampoline / small helper
6 0x021565cc 1,118 50 0 high-fan-out (likely dispatcher / setup)
7 0x02156de0 234 12 0 code
8 0x02156ee0 26 1 0 trampoline / small helper
9 0x02156efc 52 1 0 code
10 0x02156f30 12 1 0 trampoline / small helper
11 0x02156f3c 18 2 0 trampoline / small helper

Open questions & conflicts

Open questions / unknowns

Conflicts with the prior shallow pass

Source