diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2023-08-31 17:26:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-31 09:26:37 -0700 |
| commit | c6f75799390c185e5a06cedd7c7296e735b22c81 (patch) | |
| tree | 9ec48437b1113b2848fa3e72055e065d717d2c2e /src/code | |
| parent | 4e4b91939fe71079fbe8f68b0534b314d890ab17 (diff) | |
sys_ucode OK (#81)
* sys_ucode OK
* add map names for rspboot variables
* fixes
Diffstat (limited to 'src/code')
| -rw-r--r-- | src/code/game.c | 1 | ||||
| -rw-r--r-- | src/code/sys_ucode.c | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/code/game.c b/src/code/game.c index 0f657ac..aca7062 100644 --- a/src/code/game.c +++ b/src/code/game.c @@ -15,6 +15,7 @@ #include "code_variables.h" #include "overlays/gamestates/ovl_play/m_play.h" #include "overlays/gamestates/ovl_famicom_emu/famicom_emu.h" +#include "zurumode.h" #include "macros.h" Game* gamePT = NULL; diff --git a/src/code/sys_ucode.c b/src/code/sys_ucode.c new file mode 100644 index 0000000..3a6564d --- /dev/null +++ b/src/code/sys_ucode.c @@ -0,0 +1,31 @@ +#include "global.h" + +#include "sys_ucode.h" + +s64* poly_tbl[] = { gspF3DZEX2_NoN_PosLight_fifoTextStart, gspF3DZEX2_NoN_PosLight_fifoDataStart }; + +s64* sprite_tbl[] = { gspS2DEX2_fifoTextStart, gspS2DEX2_fifoDataStart }; + +s64* ucode_GetRspBootTextStart() { + return rspbootTextStart; +} + +size_t ucode_GetRspBootTextSize() { + return ((uintptr_t)rspbootTextEnd - (uintptr_t)rspbootTextStart); +} + +s64* ucode_GetPolyTextStart() { + return poly_tbl[0]; +} + +s64* ucode_GetPolyDataStart() { + return poly_tbl[1]; +} + +s64* ucode_GetSpriteTextStart() { + return sprite_tbl[0]; +} + +s64* ucode_GetSpriteDataStart() { + return sprite_tbl[1]; +} |
