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.
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.
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.
-
chestβdata/2d/chest.lzs -
dustboxβdata/2d/dustbox.lzs
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.
-
2d/chest.lzsβ no matching container found in clean extract -
2d/dustbox.lzsβ no matching container found in clean extract -
2d/itemstackwnd.lzsβ no matching container found in clean extract
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
- Auto-analysis identified 35 functions covering 8990 of 11104 overlay bytes.
- Function names are auto-generated `FUN_<addr>`. Manual renaming based on call-graph + string-ref analysis is a follow-up.
- BSS size is 0 bytes; Ghidra-imported overlay does not include BSS so any references into the BSS range appear as unresolved.
Conflicts with the prior shallow pass
- Partial overlap: prior-pass had `['chest.lzs', 'dustbox', 'itemstackwnd']`; Ghidra adds `['2d/chest.lzs', '2d/dustbox.lzs', '2d/itemstackwnd.lzs', 'chest']`.
Source
- Per-overlay markdown:
notes/overlay_knowledgebase/ov013.md - Raw Ghidra dump:
notes/overlay_knowledgebase/raw/ov013.json - Overlay-system explainer: overlays system
- Plain-English overlay primer: overlay knowledgebase