From ccd001edb78f39e7ae3f2f29ea67cc4fae9cd1b4 Mon Sep 17 00:00:00 2001 From: kitty Date: Thu, 26 Feb 2026 15:45:15 +1100 Subject: maybe this program is extremely broken. possible --- jefs.s | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'jefs.s') diff --git a/jefs.s b/jefs.s index 7820b78..b76eb11 100644 --- a/jefs.s +++ b/jefs.s @@ -6,15 +6,19 @@ mov qword [r14], %1 %endmacro +; TODO +; i'm worried that the reason the error handling +; doesnt work without the +24 +; is that my code is bad and underflows the stack %macro pspop 1 mov %1, qword [r14] lea r14, [r14+8] - ; cmp r14, wstack - ; jle %%ok - ; mov qword [error], 1 - ; mov r8, qword [handler] - ; call r8 - ; %%ok: + cmp r14, wstack + 24 + jle %%ok + mov qword [error], 1 + mov r8, qword [handler] + call r8 + %%ok: %endmacro ;;; dictionary macros {{{ -- cgit v1.2.3