as main.s -o main.o
ld main.o -o main
./main
Created
March 26, 2024 14:42
-
-
Save aarroyoc/1cd36c0a36850e69f148d848c6d3435f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.data | |
mystring: .asciiz "Hello World!\n" | |
.text | |
.global __start | |
__start: | |
li $a0, 1 | |
la $a1, mystring | |
li $a2, 13 | |
li $v0, 5001 | |
syscall | |
li $a0, 3 | |
li $v0, 5058 | |
syscall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment