From 929c523340dfecbd0e3313e25d36abe47e1cc63e Mon Sep 17 00:00:00 2001 From: Made Date: Fri, 15 May 2020 06:46:25 +0200 Subject: Replace register access macros with variables --- arm9/lib/src/GX_g3imm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'arm9/lib/src/GX_g3imm.c') diff --git a/arm9/lib/src/GX_g3imm.c b/arm9/lib/src/GX_g3imm.c index f11e2927..a5c62c26 100644 --- a/arm9/lib/src/GX_g3imm.c +++ b/arm9/lib/src/GX_g3imm.c @@ -3,16 +3,16 @@ #include "gx.h" ARM_FUNC void G3_LoadMtx43(struct Mtx43 *mtx){ - SETREG32(HW_REG_GXFIFO, 0x17); - GX_SendFifo48B(mtx, (void *)HW_REG_GXFIFO); + reg_G3X_GXFIFO = 0x17; + GX_SendFifo48B(mtx, (void *)®_G3X_GXFIFO); } ARM_FUNC void G3_MultMtx43(struct Mtx43 *mtx){ - SETREG32(HW_REG_GXFIFO, 0x19); - GX_SendFifo48B(mtx, (void *)HW_REG_GXFIFO); + reg_G3X_GXFIFO = 0x19; + GX_SendFifo48B(mtx, (void *)®_G3X_GXFIFO); } ARM_FUNC void G3_MultMtx33(struct Mtx33 *mtx){ - SETREG32(HW_REG_GXFIFO, 0x1A); - MI_Copy36B(mtx, (void *)HW_REG_GXFIFO); + reg_G3X_GXFIFO = 0x1A; + MI_Copy36B(mtx, (void *)®_G3X_GXFIFO); } -- cgit v1.2.3