From b2c1fec326315d6f38c8b7c2c392539bf6df58c2 Mon Sep 17 00:00:00 2001 From: kitty Date: Fri, 27 Feb 2026 00:12:50 +1100 Subject: fix new handler just reset the stack at the error --- jefs.s | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'jefs.s') 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 -- cgit v1.2.3