Skip to content

Match PAL object-angle update routine - #69

Open
Sumaiter wants to merge 1 commit into
OpenRAC:mainfrom
Sumaiter:decomp/pal-object-angle-update
Open

Sumaiter wants to merge 1 commit into
OpenRAC:mainfrom
Sumaiter:decomp/pal-object-angle-update

Conversation

@Sumaiter

@Sumaiter Sumaiter commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Adds matching C for PAL func_0054E910 (88 bytes). It obtains object index 0, updates the angle at 0xF8 through func_00454328 with the original float constant 0x3CC90FDB, then makes the original three subsequent calls in order.

Validation: compiled the final source through the repository's SN compiler and tools/cc.sh; all 88 bytes match PAL retail at catalogue address 0x0054E910, with only call fields masked. Independently resolved all five calls, including object addends, to 0x0046E100, 0x00454328, 0x0046F008, 0x0046F6B8 and 0x00470FD0. Both versions of tools/progress.py --check and tools/match_map.py --check, plus git diff --check, pass.

Only the new verified PAL map row and US other row were added; all previous rows were retained. Reports/README were regenerated; the US report is semantically unchanged. Based directly on upstream main independently of the other open PRs; PAL changes from 5,138 / 396,888 to 5,139 matched functions / 396,976 bytes.

The baseline sources passed a full compilation in preceding work; this final new source was compiled and byte-checked separately. No US image is available locally, so global US match/relocation audits were not run. No retail data, disassembly, SDK sources or toolchain files are included.

Preserve the object lookup, wrapped angle increment and three subsequent
calls of func_0054E910 in their original order.

Co-Authored-By: Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant