summaryrefslogtreecommitdiff
path: root/lib/runtime.asm
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-30 18:52:15 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-30 18:52:15 -0400
commit96c67f2e714bcce21abf471abb6cad3a7a758e76 (patch)
tree5e62ac05ee14923a9dfe61d3e5df701fa96932db /lib/runtime.asm
parentset padding to zero instead of undefined data (diff)
downloadmips-96c67f2e714bcce21abf471abb6cad3a7a758e76.tar.gz
mips-96c67f2e714bcce21abf471abb6cad3a7a758e76.tar.bz2
mips-96c67f2e714bcce21abf471abb6cad3a7a758e76.zip
update runtime to return exit code from main
Diffstat (limited to 'lib/runtime.asm')
-rw-r--r--lib/runtime.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/runtime.asm b/lib/runtime.asm
index 8e4034b..974fbe1 100644
--- a/lib/runtime.asm
+++ b/lib/runtime.asm
@@ -25,6 +25,6 @@ _start:
jal main
# exit
- move $a0, $v0
- li $v0, 1
+ move $a0, $v0
+ li $v0, 60
syscall