summaryrefslogtreecommitdiff
path: root/arm9/lib/src/GX_g3imm.c
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-05-19 20:47:26 +0300
committerGitHub <noreply@github.com>2020-05-19 20:47:26 +0300
commitf498725e917a761e42a6f93efdf239dde46dc245 (patch)
treedc335eeb815b2236516ea1c405cb1d26b0890f76 /arm9/lib/src/GX_g3imm.c
parentf0f5bcb1ff206f093958f523e2fc8892383e3028 (diff)
parent07c521e0fb29afac447846c52379fe6874c08a3e (diff)
Merge branch 'master' into master
Diffstat (limited to 'arm9/lib/src/GX_g3imm.c')
-rw-r--r--arm9/lib/src/GX_g3imm.c18
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..579032a6
--- /dev/null
+++ b/arm9/lib/src/GX_g3imm.c
@@ -0,0 +1,18 @@
+#include "global.h"
+#include "main.h"
+#include "GX.h"
+
+ARM_FUNC void G3_LoadMtx43(struct Mtx43 *mtx){
+ reg_G3X_GXFIFO = 0x17;
+ GX_SendFifo48B(mtx, (void *)&reg_G3X_GXFIFO);
+}
+
+ARM_FUNC void G3_MultMtx43(struct Mtx43 *mtx){
+ reg_G3X_GXFIFO = 0x19;
+ GX_SendFifo48B(mtx, (void *)&reg_G3X_GXFIFO);
+}
+
+ARM_FUNC void G3_MultMtx33(struct Mtx33 *mtx){
+ reg_G3X_GXFIFO = 0x1A;
+ MI_Copy36B(mtx, (void *)&reg_G3X_GXFIFO);
+}