mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 09:06:33 +11:00
push all registers, as rust may be using them
This commit is contained in:
parent
597b9370fc
commit
466d0844c5
1 changed files with 2 additions and 2 deletions
|
@ -22,11 +22,11 @@ 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}
|
push {lr, r4-r11}
|
||||||
adr lr, .IReturn
|
adr lr, .IReturn
|
||||||
bx r1
|
bx r1
|
||||||
.IReturn:
|
.IReturn:
|
||||||
pop {lr, r4}
|
pop {lr, r4-r11}
|
||||||
|
|
||||||
@ change back to interuupt mode
|
@ change back to interuupt mode
|
||||||
mrs r2, cpsr
|
mrs r2, cpsr
|
||||||
|
|
Loading…
Add table
Reference in a new issue