mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
arm is callee save
This commit is contained in:
parent
e22564a29c
commit
f1a2b76d28
|
@ -28,10 +28,10 @@ InterruptHandlerSimple:
|
|||
|
||||
@ call the rust interrupt handler with r0 set to the triggered interrupts
|
||||
ldr r1, =__RUST_INTERRUPT_HANDLER
|
||||
push {lr, r4-r11}
|
||||
push {lr}
|
||||
mov lr, pc
|
||||
bx r1
|
||||
pop {lr, r4-r11}
|
||||
pop {lr}
|
||||
|
||||
@ change back to interrupt mode
|
||||
mrs r2, cpsr
|
||||
|
|
Loading…
Reference in a new issue