-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add size hints for PSP globals and fix some references (#2247)
Should help with decomp because when doing this, splat can provide offsets from the base address in the ASM, for example ``` /* 23C8C 0910060C 1D09023C */ lui $v0, %hi(g_Status + 0x240) /* 23C90 09100610 40F6428C */ lw $v0, %lo(g_Status + 0x240)($v0) ``` ``` /* 1A29C 090F6C1C 2309023C */ lui $v0, %hi(g_CastleFlags + 0x96) /* 1A2A0 090F6C20 C64743A0 */ sb $v1, %lo(g_CastleFlags + 0x96)($v0) ``` This should stop accidentally mapping these addresses as extern symbols when decompiling [like this](#2243 (comment)). While I was here I fixed a few of the existing cases where that had happened, using the splat hints as a guide. I think the same should be possible on the PSX side but I need to verify a few things.
- Loading branch information
1 parent
df8ff7c
commit f17d42e
Showing
9 changed files
with
27 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters