From 639098b1ea82be82bd18a4af415458fcbaf5e20b Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 11 Apr 2025 16:39:21 -0400 Subject: Add RET and NOP j-type instructions --- input/dominative-functions.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/dominative-functions.asm b/input/dominative-functions.asm index cb8564e..530717d 100644 --- a/input/dominative-functions.asm +++ b/input/dominative-functions.asm @@ -14,6 +14,7 @@ MAIN: push $6 ;; jal SUB23 + pop $6 store $6 answer($0) SUB23: push $5 ; push old frame pointer @@ -34,7 +35,7 @@ SUB23: addi $2 $5 0x0 ; restore stack pointer pop $5 ; restore frame pointer - ;; ret + ret ADD76: push $5 addi $5 $2 0x0 @@ -51,4 +52,4 @@ ADD76: addi $2 $5 0x0 pop $5 - ;; ret + ret -- cgit v1.2.3