diff options
author | Made <made111@gmx.de> | 2020-05-15 03:47:36 +0200 |
---|---|---|
committer | Made <made111@gmx.de> | 2020-05-15 03:47:36 +0200 |
commit | 7e9089849989d5e930eb5b5f7cecfd8d2c6c379c (patch) | |
tree | 50ccca8e970b7738cf7ecf0420d6a5444b031362 /arm9/lib/src/GX_g3imm.c | |
parent | 14a5ca7ae49912305b1bcbaa180cfc9fdf8ff17a (diff) |
Decompile GX_g3imm.s and GX_state.s
Diffstat (limited to 'arm9/lib/src/GX_g3imm.c')
-rw-r--r-- | arm9/lib/src/GX_g3imm.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arm9/lib/src/GX_g3imm.c b/arm9/lib/src/GX_g3imm.c new file mode 100644 index 00000000..f41b5cbf --- /dev/null +++ b/arm9/lib/src/GX_g3imm.c @@ -0,0 +1,18 @@ +#include "global.h" +#include "main.h" +#include "gx.h" + +void G3_LoadMtx43(struct Mtx43 *mtx){ + SETREG32(HW_REG_GXFIFO, 0x17); + GX_SendFifo48B(mtx, (void *)HW_REG_GXFIFO); +} + +void G3_MultMtx43(struct Mtx43 *mtx){ + SETREG32(HW_REG_GXFIFO, 0x19); + GX_SendFifo48B(mtx, (void *)HW_REG_GXFIFO); +} + +void G3_MultMtx33(struct Mtx33 *mtx){ + SETREG32(HW_REG_GXFIFO, 0x1A); + MI_Copy36B(mtx, (void *)HW_REG_GXFIFO); +} |