ov031 β€” overlay detail

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

containers: 2d/charmake/scr_top.lzs, 2d/charmake/scr_under_%d.lzs, scr_top

ov031 general_2d_ui

containers: 2d/charmake/scr_top.lzs, 2d/charmake/scr_under_%d.lzs, scr_top

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 31
File ID 31
RAM load address 0x02155a00
RAM size 6,112 bytes (0x17e0)
BSS size 0 bytes
On-disk compressed size 4,972 bytes
Compression flag 0x1 (BLZ-compressed)
Functions 38
External calls 58
Jump tables 7
Data items 146
Code coverage 81% (4,968 of 6,112 bytes)

Reading the binary

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

0x02155a76 `だ搬摬擬`
0x0215614e `ι€Œγι€Œθ ˆεΆ›`

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 38 functions
# Address Size Calls Strings Role hint
1 0x02155b60 6 0 0 trampoline / small helper
2 0x02155b68 48 4 0 code
3 0x02155b9c 28 3 0 trampoline / small helper
4 0x02155bb8 272 14 0 code
5 0x02155ce4 184 11 0 code
6 0x02155dac 66 3 0 code
7 0x02155df0 72 4 0 code
8 0x02155e3c 180 8 3 refs: 2d/charmake/scr_top.lzs \| 2d/charmake/scr_under_%d.lzs \| scr_under_%d
9 0x02155f04 38 5 0 trampoline / small helper
10 0x02155f2c 38 5 0 trampoline / small helper
11 0x02155f54 68 4 1 refs: scr_top
12 0x02155f9c 30 3 0 trampoline / small helper
13 0x02155fbc 76 5 0 code
14 0x02156008 40 4 0 code
15 0x02156030 192 6 1 refs: scr_top
16 0x021560fc 28 1 0 trampoline / small helper
17 0x02156118 384 11 0 code
18 0x021562ac 34 1 0 trampoline / small helper
19 0x021562d0 80 6 0 code
20 0x02156324 368 12 0 code
21 0x021564b8 70 4 0 code
22 0x02156504 30 3 0 trampoline / small helper
23 0x02156528 26 2 0 trampoline / small helper
24 0x02156548 26 2 0 trampoline / small helper
25 0x02156568 128 7 0 code
26 0x021565f0 204 2 0 code
27 0x021566cc 56 1 0 code
28 0x02156708 22 1 0 trampoline / small helper
29 0x02156724 238 9 0 code
30 0x02156818 958 26 0 high-fan-out (likely dispatcher / setup)
31 0x02156bf4 44 1 0 code
32 0x02156c24 394 16 0 code
33 0x02156ddc 6 0 0 trampoline / small helper
34 0x02156de4 6 0 0 trampoline / small helper
35 0x02156dec 172 9 0 code
36 0x02156ea8 30 1 0 trampoline / small helper
37 0x02156ecc 314 7 0 code
38 0x02157028 12 1 0 trampoline / small helper

Open questions & conflicts

Open questions / unknowns

Conflicts with the prior shallow pass

Source