aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-05 00:12:59 -0700
committerChristian Cunningham <cc@localhost>2022-02-05 00:12:59 -0700
commit21c6fe3075bf31da11e4d9a2f98eaf98a684664d (patch)
treecd4d1e13b548c034552ee302a95c72d484e61893 /src/exceptions
parent4a96615197dc8aead8a53c8c85b99496298dc86d (diff)
Fixed undefined handler
Diffstat (limited to 'src/exceptions')
-rw-r--r--src/exceptions/undefined.S3
1 files changed, 1 insertions, 2 deletions
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