add mips assembly

This commit is contained in:
sjyn
2016-01-05 11:31:03 -05:00
parent 96d0a237f1
commit 1fa5161165

9
a/assembler_mips.asm Normal file
View File

@@ -0,0 +1,9 @@
.data
hw: .asciiz "Hello, World!"
.text
main:
la $a0, hw #load the address of hw into $a0
li $v0, 4 #load 4 into $v0
syscall #perform the print_string syscall
li $v0, 10 #load 10 into $v0
syscall #perform the exit syscall