mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-28 13:24:02 -05:00
c1a61413d6dea1d4539bd21782d76e97907ee15b
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>
…
…
…
…
…
…
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:
- pmdsky.us.nds
sha1: 5fa96ca8d8dd6405d6cd2bad73ed68bc73a9d152 - pmdsky.eu.nds
sha1: c838a5adf1ed32d2da8454976e5b1a1aa189c139 - pmdsky.jp.nds
sha1: 7785138dd343b6f2d0f2c9cadc26b4aa927161d7
For contacts and other pret projects, see pret.github.io.
Description
Languages
Assembly
66.3%
C
18%
C++
7.1%
Boogie
4.3%
sed
1.5%
Other
2.8%