From bd1f5f6a5a7eaaa9c2f347b283f7c228ea421945 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Thu, 24 Jun 2021 20:05:23 +0100 Subject: [PATCH] store gbatek recommended registers --- agb/interrupt_simple.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/interrupt_simple.s b/agb/interrupt_simple.s index 2b4b220d..a678206e 100644 --- a/agb/interrupt_simple.s +++ b/agb/interrupt_simple.s @@ -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