diff options
author | Made <made111@gmx.de> | 2020-05-09 19:10:59 +0200 |
---|---|---|
committer | Made <made111@gmx.de> | 2020-05-09 19:10:59 +0200 |
commit | 4ca37a40d9fbe67888777e65aea5a6bf1f4c5829 (patch) | |
tree | 725720cb0dce6a7b91df06f228f541d5b1a5a951 /arm9/lib/include/gx.h | |
parent | ae744a2ea5a31f19330aedd1e264c88b97873c1c (diff) |
temporarily add register macros till actual definitions are added
Diffstat (limited to 'arm9/lib/include/gx.h')
-rw-r--r-- | arm9/lib/include/gx.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arm9/lib/include/gx.h b/arm9/lib/include/gx.h index dd266759..03e26610 100644 --- a/arm9/lib/include/gx.h +++ b/arm9/lib/include/gx.h @@ -34,6 +34,16 @@ #define HW_REG_SHININESS 0x040004D0 +//TODO: wait for register commit and replace these +#define SETREG16(x, y) ((*(vu16 *)x) = y) +#define SETREG32(x, y) ((*(vu32 *)x) = y) +#define SETREG64(x, y) ((*(vu64 *)x) = y) + +#define READREG16(x) (*(vu16 *)x) +#define READREG32(x) (*(vu32 *)x) +#define READREG64(x) (*(vu64 *)x) + + struct DL { u8 *var00; //end pointer |