From fc23b0f6fecc27bceb7f1f781bc78d3133cbbd4c Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Fri, 21 May 2021 05:20:53 +1000 Subject: [PATCH] ensuring full cell arithmetics --- math.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math.asm b/math.asm index d25d14c..5547b57 100644 --- a/math.asm +++ b/math.asm @@ -4,14 +4,14 @@ ;; ( n1 n2 -- n3 ) ;; n3 is the sum of n1 and n2 pop rax - add [rsp],rax + add qword [rsp],rax next WORD p_minus, '-',fasm ;; ( n1 n2 -- n3 ) ;; n3 is the result of subtracting n2 from n1 pop rax - sub [rsp], rax + sub qword [rsp], rax next WORD p_mult, '*',fasm -- 2.39.2