mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 09:06:33 +11:00
arm is callee save
This commit is contained in:
parent
e22564a29c
commit
f1a2b76d28
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue