diff options
author | Bad Diode <bd@badd10de.dev> | 2021-04-28 19:45:09 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-04-28 19:45:09 +0200 |
commit | dbb61a0a339306be380ff4b3bffad64b7e474d24 (patch) | |
tree | 47e19be43ccbb774d1bdf7dbb9f3a4539c83bd06 /src/irs.s | |
parent | 3e0bb6c9d1f788b51d26ed55acd32291df721129 (diff) | |
download | gba-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.s | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
85 | mem_irq_base_reg: | 87 | mem_irq_base_reg: |
86 | .word 0x04000200 @ IRQ_ENABLE | 88 | .word 0x04000200 @ IRQ_ENABLE |
87 | .word 0x04000202 @ IRQ_ACK | ||
88 | .word 0x04000208 @ IRQ_CTRL | ||