summaryrefslogtreecommitdiffstats
path: root/src/irs.s
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-04-28 19:45:09 +0200
committerBad Diode <bd@badd10de.dev>2021-04-28 19:45:09 +0200
commitdbb61a0a339306be380ff4b3bffad64b7e474d24 (patch)
tree47e19be43ccbb774d1bdf7dbb9f3a4539c83bd06 /src/irs.s
parent3e0bb6c9d1f788b51d26ed55acd32291df721129 (diff)
downloadgba-experiments-dbb61a0a339306be380ff4b3bffad64b7e474d24.tar.gz
gba-experiments-dbb61a0a339306be380ff4b3bffad64b7e474d24.zip
Update main function to use the BIOS VSync
Diffstat (limited to 'src/irs.s')
-rw-r--r--src/irs.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irs.s b/src/irs.s
index 924441e..66ac0c2 100644
--- a/src/irs.s
+++ b/src/irs.s
@@ -47,7 +47,9 @@ irs_main_handle_irs:
47 mov r0, #1 47 mov r0, #1
48 lsl r0, r0, r3 48 lsl r0, r0, r3
49 strh r0, [ip, #2] 49 strh r0, [ip, #2]
50 @ TODO: IRQ_ACK_BIOS 50 ldr r1, [ip, #-0x208]
51 orr r1, r1, r0
52 str r1, [ip, #-0x208]
51 53
52 @ Store the SPSR in one of the free registers and save it along with the 54 @ Store the SPSR in one of the free registers and save it along with the
53 @ return pointer. 55 @ return pointer.
@@ -84,5 +86,3 @@ irs_main_exit:
84 86
85mem_irq_base_reg: 87mem_irq_base_reg:
86 .word 0x04000200 @ IRQ_ENABLE 88 .word 0x04000200 @ IRQ_ENABLE
87 .word 0x04000202 @ IRQ_ACK
88 .word 0x04000208 @ IRQ_CTRL