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/sys_ucode.c | |
| parent | 4e4b91939fe71079fbe8f68b0534b314d890ab17 (diff) | |
sys_ucode OK (#81)
* sys_ucode OK
* add map names for rspboot variables
* fixes
Diffstat (limited to 'src/code/sys_ucode.c')
| -rw-r--r-- | src/code/sys_ucode.c | 31 |
1 files changed, 31 insertions, 0 deletions
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]; +} |
