mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-12 01:51:34 +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
|
@ call the rust interrupt handler with r0 set to the triggered interrupts
|
||||||
ldr r1, =__RUST_INTERRUPT_HANDLER
|
ldr r1, =__RUST_INTERRUPT_HANDLER
|
||||||
push {lr, r4-r11}
|
push {lr}
|
||||||
mov lr, pc
|
mov lr, pc
|
||||||
bx r1
|
bx r1
|
||||||
pop {lr, r4-r11}
|
pop {lr}
|
||||||
|
|
||||||
@ change back to interrupt mode
|
@ change back to interrupt mode
|
||||||
mrs r2, cpsr
|
mrs r2, cpsr
|
||||||
|
|
Loading…
Reference in a new issue