ov013 β€” overlay detail

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

containers: 2d/chest.lzs, 2d/dustbox.lzs, 2d/itemstackwnd.lzs (+2 more)

ov013 general_2d_ui

containers: 2d/chest.lzs, 2d/dustbox.lzs, 2d/itemstackwnd.lzs (+2 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 13
File ID 13
RAM load address 0x02155a00
RAM size 11,104 bytes (0x2b60)
BSS size 0 bytes
On-disk compressed size 9,056 bytes
Compression flag 0x1 (BLZ-compressed)
Functions 35
External calls 57
Jump tables 4
Data items 145
Code coverage 81% (8,990 of 11,104 bytes)

Reading the binary

The overlay ships on the cart at file ID 13 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 + 13 * 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_013.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/ov013.json; the per-overlay descriptive markdown is at notes/overlay_knowledgebase/ov013.md.

Embedded strings

3 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.

0x021561ff `鯢蓽怠ぃ`
0x02157a6a `逃ゲ逃頀`
0x02157b38 `逄ゲ逄頁`

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 35 functions
# Address Size Calls Strings Role hint
1 0x02155ec4 16 0 0 trampoline / small helper
2 0x02155ed4 840 37 0 high-fan-out (likely dispatcher / setup)
3 0x02156234 232 12 6 refs: dustbox.lzs \| chest.lzs \| dustbox.lzs \| chest.lzs \| dustbox.lzs \| dustbox.lzs
4 0x0215632c 64 5 0 code
5 0x02156370 108 0 0 code
6 0x021563e0 164 9 0 code
7 0x02156494 266 9 0 code
8 0x021565a8 532 20 0 code
9 0x021567c4 268 7 0 code
10 0x021568d0 132 3 0 code
11 0x0215695c 450 19 0 code
12 0x02156b3c 16 0 0 trampoline / small helper
13 0x02156b50 12 1 0 trampoline / small helper
14 0x02156b60 12 0 0 trampoline / small helper
15 0x02156b70 12 1 0 trampoline / small helper
16 0x02156b80 414 9 0 code
17 0x02156d34 374 11 0 code
18 0x02156ebc 856 23 0 high-fan-out (likely dispatcher / setup)
19 0x02157244 60 3 0 code
20 0x02157284 20 0 0 trampoline / small helper
21 0x0215729c 232 6 0 code
22 0x02157394 1,180 39 0 high-fan-out (likely dispatcher / setup)
23 0x02157864 86 4 0 code
24 0x021578c0 52 1 0 code
25 0x021578f4 74 5 0 code
26 0x02157944 70 1 0 code
27 0x02157990 92 0 0 code
28 0x021579ec 720 4 0 code
29 0x02157cbc 24 2 0 trampoline / small helper
30 0x02157cd4 64 0 0 code
31 0x02157d14 114 6 0 code
32 0x02157d88 212 4 0 code
33 0x02157e5c 326 11 0 code
34 0x02157fa4 884 28 0 high-fan-out (likely dispatcher / setup)
35 0x02158354 12 1 0 trampoline / small helper

Open questions & conflicts

Open questions / unknowns

Conflicts with the prior shallow pass

Source