21 lines
303 B
ArmAsm
21 lines
303 B
ArmAsm
#include <sys/syscall.h>
|
|
|
|
.data
|
|
message: .asciz "bye-bye ...\n"
|
|
|
|
.text
|
|
.global _start
|
|
_start:
|
|
li.w $a7, __NR_write
|
|
li.w $a0, 1 # stdout file descriptor
|
|
la $a1, message
|
|
li.w $a2, 12 # message length
|
|
syscall 0x0
|
|
|
|
li.w $a7, __NR_exit
|
|
li.w $a0, 0
|
|
syscall 0x0
|
|
|
|
.section .note.GNU-stack,"",@progbits
|
|
|