summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-02-27 00:12:50 +1100
committerkitty <nepeta@canaglie.net>2026-02-27 00:12:50 +1100
commitb2c1fec326315d6f38c8b7c2c392539bf6df58c2 (patch)
treef6d5052895bbb48ab2fcb7fbc8f3528b6475e385 /jefs.s
parent0cb56caeb9ce0d61275a6d19e7553df5ed86a9cf (diff)
fix new handler
just reset the stack at the error
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/jefs.s b/jefs.s
index 5f27236..f7ad9ac 100644
--- a/jefs.s
+++ b/jefs.s
@@ -1093,6 +1093,13 @@ defword "(handler)", brac_handler, 0
syscall
ret
+; used in later error handler;
+; just say 'fuck the stack' and put it back to s0.
+; this avoids any stack fuckery happening inside the handler.
+defword ">s0", to_s0, 0
+ mov r14, wstack
+ ret
+
; TEMPORARY HORRIBLE DEBUGGING BULLSHIT {{{
; debugging word; outputs raw bytes so needs to be piped through `x(x)d`
; terrible and awful