Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- mystring: .asciiz "Hello World!\n"
- .text
- .global __start
- __start:
- li $v0, 4
- la $a0, mystring
- syscall
- li $a0, 3
- li $v0, 4001
- syscall
- # save as : test.s
- # assemble with :
- # as -o test.o test.s
- # link/load with :
- # ld -o test test.o
- # run with
- # ./test
- # desired result :
- # should print "Hello World", but it doesn't print anything
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement