summaryrefslogtreecommitdiff
path: root/Homework/cs5300/hw-MIPS/code/add.asm
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-07-02 11:55:17 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-07-02 11:55:17 -0700
commit6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch)
treeed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs5300/hw-MIPS/code/add.asm
downloadmisc-undergrad-main.tar.gz
misc-undergrad-main.zip
Diffstat (limited to 'Homework/cs5300/hw-MIPS/code/add.asm')
-rw-r--r--Homework/cs5300/hw-MIPS/code/add.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/Homework/cs5300/hw-MIPS/code/add.asm b/Homework/cs5300/hw-MIPS/code/add.asm
new file mode 100644
index 0000000..7f9ff9d
--- /dev/null
+++ b/Homework/cs5300/hw-MIPS/code/add.asm
@@ -0,0 +1,12 @@
+.data
+
+.text
+main:
+ li $s0, 3
+ li $s1, 4
+ add $a0, $s0, $s1
+ li $v0, 1
+ syscall
+
+ li $v0,10
+ syscall