From e1426d8ef7a4d6ca00187e3d5a0b8958398c55f1 Mon Sep 17 00:00:00 2001 From: Corwin Date: Wed, 17 May 2023 23:25:27 +0100 Subject: [PATCH] correct non thumb-interwork return --- agb/src/save/asm_routines.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agb/src/save/asm_routines.s b/agb/src/save/asm_routines.s index 91128bf4..ac96ce9c 100644 --- a/agb/src/save/asm_routines.s +++ b/agb/src/save/asm_routines.s @@ -31,7 +31,9 @@ agb_thumb_func agb_rs__WramVerifyBuf @ Returns from the function successfully movs r0, #1 0: @ Jumps to here return the function unsuccessfully, because r0 contains 0 at this point - pop {r4-r5, pc} + pop {r4-r5} + pop {r1} + bx r1 agb_thumb_end agb_rs__WramVerifyBuf