summaryrefslogtreecommitdiff
path: root/src/code/sys_ucode.c
blob: 73fd5a692fcff5b4614cab317da0edcd5a5cc950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "global.h"

#include "sys_ucode.h"

s64* poly_tbl[] = { gspF3DZEX2_NoN_PosLight_fifoTextStart, gspF3DZEX2_NoN_PosLight_fifoDataStart };

u64* 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];
}

u64* ucode_GetSpriteTextStart() {
    return sprite_tbl[0];
}

u64* ucode_GetSpriteDataStart() {
    return sprite_tbl[1];
}