summaryrefslogtreecommitdiff
path: root/arm9/lib/src/GX_g3imm.c
blob: f2129c48bf8346551c7c18d9f1f3e0c9afc747b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "global.h"
#include "gx.h"

void MI_Copy36B(void *src, void *dst);

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);
}