mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
store gbatek recommended registers
This commit is contained in:
parent
ac5fd06106
commit
bd1f5f6a5a
|
@ -22,10 +22,10 @@ InterruptHandlerSimple:
|
|||
|
||||
@ call the rust interrupt handler with r0 set to the triggered interrupts
|
||||
ldr r1, =__RUST_INTERRUPT_HANDLER
|
||||
push {lr, r4-r9}
|
||||
push {lr, r4-r11}
|
||||
mov lr, pc
|
||||
bx r1
|
||||
pop {lr, r4-r9}
|
||||
pop {lr, r4-r11}
|
||||
|
||||
@ change back to interrupt mode
|
||||
mrs r2, cpsr
|
||||
|
|
Loading…
Reference in a new issue