From 21c6fe3075bf31da11e4d9a2f98eaf98a684664d Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 5 Feb 2022 00:12:59 -0700 Subject: Fixed undefined handler --- src/exceptions/undefined.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/exceptions/undefined.S') diff --git a/src/exceptions/undefined.S b/src/exceptions/undefined.S index b8eab29..ef00735 100644 --- a/src/exceptions/undefined.S +++ b/src/exceptions/undefined.S @@ -17,8 +17,7 @@ undefined: ldr r2, =undefined_at bl draw_string // Output lr - mov r1, #0x1000 - ldr r0, [r1, #-4] + ldr r0, [sp, #0x34] sub r2, r0, #4 mov r0, #31 mov r1, #17 -- cgit v1.2.1