From 768ebe5c796d85d0262260c9a0b1f7aec28b8844 Mon Sep 17 00:00:00 2001 From: bd Date: Wed, 16 Apr 2025 16:37:18 -0400 Subject: Let displacement for JAL+JMP be the absolute file position of label --- input/dominative-functions.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/dominative-functions.asm b/input/dominative-functions.asm index 530717d..d11ddcb 100644 --- a/input/dominative-functions.asm +++ b/input/dominative-functions.asm @@ -13,7 +13,7 @@ MAIN: addi $6 $0 -11 push $6 - ;; jal SUB23 + jal SUB23 pop $6 store $6 answer($0) SUB23: @@ -29,7 +29,7 @@ SUB23: add $6 $6 $7 push $6 - ;; jal ADD76 + jal ADD76 pop $6 ; retrieve and pass along store $6 +4($5) -- cgit v1.2.3