Match functions, misc fixes, add script to check progress
- Put functions in the list of problematic functions in
configure.pyin alphabetical order based on name of the TU. - Fix small typo in
scripts/readme.md. - Separate library sources from engine sources in
src/readme.md. - Match some functions in various files.
- Added fully matched
RemoveZpdZapLoby @polybiusproxy that was based on a scratch by me. However there is a TU padding problem. I think thesce/libsTU should start at address0xF69C4instead of0xF69C0like it is now. Changing the address doesn't work because the 4 NOP bytes get added right after the function. - Added a script to locally check the project progress. Changed the
checks.shscript to optionally output the progress report generated by objdiff to a new file. - Managed to identify quite a lot of
.datasegment starting addresses. - Merged split
P2/UNKNOWN2intoP2/swas it seemed to make the most sense.
The reason it adds 4 bytes of padding when you change sce/libs to start at 0xF69C4 is because all TUs are aligned to 8 bytes, i.e. the TU offsets always have to end in 0 or 8. If you don't align it to an 8-byte boundary it will add padding to make it so.
The reason it adds 4 bytes of padding when you change
sce/libsto start at0xF69C4is because all TUs are aligned to 8 bytes, i.e. the TU offsets always have to end in 0 or 8. If you don't align it to an 8-byte boundary it will add padding to make it so.
Interesting. The last function in P2/zap cannot be taken out of the SKIP_ASM ifdef because it will overwrite the first bytes of sce/libs iirc. How should that be fixed?
It sounds like the offset of sce/libs is incorrect. Can you just push the offset of sce/libs back so the zap function doesn't overlap?
It sounds like the offset of
sce/libsis incorrect. Can you just push the offset ofsce/libsback so the zap function doesn't overlap?
I tried that already but sce/libs gets misaligned.