Dekejit/tests/assembly/hello_world.grasm

14 lines
194 B
Plaintext
Raw Normal View History

2023-04-28 12:18:07 +02:00
; Hello world program.
.asciiz World
"Hello world\n"
.text main
addi t0 World ; load World's address into t0
call t0 3 ; print string syscall
2023-05-02 14:13:49 +02:00
halt
2023-04-28 12:18:07 +02:00
.asciiz hey
"Hey dude\n"
2023-05-02 14:13:49 +02:00