From a617499f8472c7ad4e12ff77709448814c5513ec Mon Sep 17 00:00:00 2001 From: kitty Date: Sat, 14 Feb 2026 02:02:06 +1100 Subject: makefile fix, arithmetic --- jefs.s | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'jefs.s') diff --git a/jefs.s b/jefs.s index 86893bd..b464077 100644 --- a/jefs.s +++ b/jefs.s @@ -533,6 +533,27 @@ defword "rdrop", rdrop, 0 pop r11 ret +defword "+", plus, 0 + pspop r11 + pspop r12 + add r11, r12 + pspush r11 + ret + +defword "-", minus, 0 + pspop r11 + pspop r12 + sub r11, r12 + pspush r11 + ret + +defword "*", timess, 0 + pspop r11 + pspop r12 + imul r11, r12 + pspush r11 + ret + defword "[", lbrac, immediate_mask mov qword [state], interpreting ret -- cgit v1.2.3