summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
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