diff options
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]; +} |
