summaryrefslogtreecommitdiff
path: root/tests/test6.asm
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-05-29 14:19:43 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-05-29 14:19:43 -0400
commit843806d7c80bfec8fcea5fae81961fa35c91a804 (patch)
tree32700c4a323d3fd9a81ba7f6d1663a5f7dfa28d0 /tests/test6.asm
parent05d10fb3a941aa384340d2999033aacb31e5f32f (diff)
ELF Implementation
Diffstat (limited to 'tests/test6.asm')
-rwxr-xr-xtests/test6.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test6.asm b/tests/test6.asm
new file mode 100755
index 0000000..3c9ab62
--- /dev/null
+++ b/tests/test6.asm
@@ -0,0 +1,24 @@
+.text
+
+addi $t0, $zero, x
+addi $v0, $zero, 1
+lw $a0, 0($t0)
+syscall
+addi $v0, $zero, 10
+syscall
+
+.data
+
+x: .word 0xFFFFFFFF
+cats: .asciiz "cats are cool\n"
+c: .byte 0
+
+.rodata
+
+g: .word 50
+dogs: .ascii "Dogs are cool\n"
+h: .half 255
+
+.bss
+fib: .space 40
+