cecilarmitais c1a61413d6 Decomp ov11_022ED69C; correct BmaHeader field signedness
Decompiles ov11_022ED69C (410 instructions) out of
asm/overlay_11_022ECD24.s. The function was first in that file, so the
remainder splits to asm/overlay_11_022EDD14.s and main.lsf gains
src/overlay_11_022ED69C.o ahead of it.

include/ground_bg.h:

- MapRender 0x1C -> 0x54, adding unk1C/unk24/unk2C (two pointers each)
  and a 0x20 filler. This consumes GroundBg::fillerForNow2[112]
  exactly: 0x210 + 2*0x54 == 0x2B8, so no offset after it moves, and
  ground_bg.c only ever uses mapRender[0].
- GroundBg::unk1FC: four unreferenced u8 -> one s32.
- BmaHeader::numLayers/hasDataLayer/hasCollision: u16 -> s16. Retail
  reads these with ldrsh; the u16 declaration emitted ldrh and produced
  three wrong bytes in OVY_11.sbin. This function is their only reader
  in the tree -- every other use is a strh, identical either way -- so
  no other object changes.
- RGB_Array, the UnkStruct_2324CBC family, the three palette helpers,
  ov11_02320C18 and ov11_02320BF4/BE8 move here from src/ground_bg.c,
  which now includes them rather than redeclaring them.

asm/overlay_11_022ECD24_data.s has its .include repointed at the .inc
that survived the split; extract_function.py deletes the old one without
knowing about sibling objects in the same address range.

ov11_022EE9B0 and ov11_022EE8CC are still asm and are declared
provisionally in include/overlay_11_022ED69C.h from their call sites.

Authored by Claude (Opus 5) under human direction. Confirmed by a
matching build: build/pmdsky.us/pmdsky.us.nds: OK.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 23:12:40 -07:00
2026-08-22 20:45:50 -04:00
…
2026-09-04 13:13:23 -07:00
…
…
…
…
…
…

Pokémon Mystery Dungeon: Explorers of Sky

This is a WIP disassembly of Pokémon Mystery Dungeon: Explorers of Sky. For instructions on how to set up the repository, please read INSTALL.md. For information on how to contribute changes, see CONTRIBUTING.md.

This repository builds the following ROMs:

For contacts and other pret projects, see pret.github.io.

Description
Decompilation of Pokémon Mystery Dungeon: Explorers of Sky
Readme 335 MiB
Languages
Assembly 66.3%
C 18%
C++ 7.1%
Boogie 4.3%
sed 1.5%
Other 2.8%