name GPIO registers

This commit is contained in:
YamaArashi
2015-11-27 15:46:51 -08:00
parent ddc1ae2fed
commit 244ae4c8b8
2 changed files with 68 additions and 68 deletions

View File

@@ -3,22 +3,22 @@ RomBase: ; 8000000
.include "asm/rom_header.s"
_080000C0:
; 80000C0
.4byte 0
_080000C4:
GPIOPortData: ; 80000C4
.2byte 0
_080000C6:
GPIOPortDirection: ; 80000C6
.2byte 0
_080000C8:
.4byte 0
GPIOPortReadWrite: ; 80000C8
.2byte 0
.incbin "base_emerald.gba", 0xCC, 0x204 - 0xCC
.incbin "base_emerald.gba", 0xCA, 0x204 - 0xCA
arm_func_start Init
Init:
Init: ; 8000204
mov r0, PSR_IRQ_MODE
msr cpsr_cf, r0
ldr sp, sp_irq
@@ -42,7 +42,7 @@ sp_irq: .4byte IWRAM_END - 0x60
arm_func_end Init
arm_func_start InterruptMain
InterruptMain:
InterruptMain: ; 8000248
mov r3, REG_BASE
add r3, r3, 0x200
ldr r2, [r3, OFFSET_REG_IE - 0x200]