From 1fa516116521677026a35c11b5515f0480de9b29 Mon Sep 17 00:00:00 2001 From: sjyn Date: Tue, 5 Jan 2016 11:31:03 -0500 Subject: [PATCH] add mips assembly --- a/assembler_mips.asm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 a/assembler_mips.asm diff --git a/a/assembler_mips.asm b/a/assembler_mips.asm new file mode 100644 index 00000000..42784710 --- /dev/null +++ b/a/assembler_mips.asm @@ -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