summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-11 16:39:21 -0400
committerbd <bdunahu@operationnull.com>2025-04-11 16:39:21 -0400
commit639098b1ea82be82bd18a4af415458fcbaf5e20b (patch)
treecaecdd1499d2e391cd5bd2dcde3aebfade002a09 /input
parent5c9ac514d0556d875a12b2c7d3c4aedf23b9575b (diff)
Add RET and NOP j-type instructions
Diffstat (limited to 'input')
-rw-r--r--input/dominative-functions.asm5
1 files changed, 3 insertions, 2 deletions
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