23 lines
270 B
ArmAsm
23 lines
270 B
ArmAsm
#include <sys/syscall.h>
|
|
|
|
.arch armv8-a
|
|
.data
|
|
message: .asciz "bye-bye ...\n"
|
|
|
|
.text
|
|
.align 2
|
|
.global _start
|
|
_start:
|
|
mov x8, __NR_write
|
|
mov x0, 1
|
|
adr x1, message
|
|
mov x2, 12
|
|
svc #0
|
|
|
|
mov x8, __NR_exit
|
|
mov x0, 0
|
|
svc #0
|
|
.section .note.GNU-stack,"",@progbits
|
|
|
|
|