diff options
author | Made <made111@gmx.de> | 2020-05-09 19:44:46 +0200 |
---|---|---|
committer | Made <made111@gmx.de> | 2020-05-09 19:44:46 +0200 |
commit | 4abf7d45568d93040fdb86993e915ffdfc4c4a9e (patch) | |
tree | 2bf002914ba0877d914fe5fa2fba82386a3da90d /arm9/lib/src | |
parent | 4ca37a40d9fbe67888777e65aea5a6bf1f4c5829 (diff) |
start decompiling GX_vramcnt.s
Diffstat (limited to 'arm9/lib/src')
-rw-r--r-- | arm9/lib/src/GX_vramcnt_c.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arm9/lib/src/GX_vramcnt_c.c b/arm9/lib/src/GX_vramcnt_c.c new file mode 100644 index 00000000..50107888 --- /dev/null +++ b/arm9/lib/src/GX_vramcnt_c.c @@ -0,0 +1,24 @@ +#include "global.h" +#include "main.h" +#include "gx.h" + +void GX_VRAMCNT_SetLCDC_(u32 r0){ + if (r0 & (0x1 << 0)) + SETREG8(HW_REG_VRAMCNT_A, 0x80); + if (r0 & (0x1 << 1)) + SETREG8(HW_REG_VRAMCNT_B, 0x80); + if (r0 & (0x1 << 2)) + SETREG8(HW_REG_VRAMCNT_C, 0x80); + if (r0 & (0x1 << 3)) + SETREG8(HW_REG_VRAMCNT_D, 0x80); + if (r0 & (0x1 << 4)) + SETREG8(HW_REG_VRAMCNT_E, 0x80); + if (r0 & (0x1 << 5)) + SETREG8(HW_REG_VRAMCNT_F, 0x80); + if (r0 & (0x1 << 6)) + SETREG8(HW_REG_VRAMCNT_G, 0x80); + if (r0 & (0x1 << 7)) + SETREG8(HW_REG_VRAMCNT_H, 0x80); + if (r0 & (0x1 << 8)) + SETREG8(HW_REG_VRAMCNT_I, 0x80); +} |