You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
.global _start
|
|
|
|
_start:
|
|
li a0, 1 # file descriptor = 1 (stdout)
|
|
la a1, string # buffer
|
|
li a2, 19 # size
|
|
li a7, 64 # syscall write (64)
|
|
ecall
|
|
|
|
_end:
|
|
|
|
li a0, 0 # exit code
|
|
li a7, 93 # syscall exit
|
|
ecall
|
|
|
|
|
|
string: .asciz "Hello! It works!!!\n"
|