cross-toolchain/bye-arm64.S

23 lines
270 B
ArmAsm
Raw Permalink Normal View History

2022-06-05 18:43:37 +03:00
#include <sys/syscall.h>
.arch armv8-a
.data
message: .asciz "bye-bye ...\n"
2022-06-05 18:43:37 +03:00
.text
.align 2
.global _start
_start:
mov x8, __NR_write
mov x0, 1
adr x1, message
mov x2, 12
svc #0
2022-06-05 18:43:37 +03:00
mov x8, __NR_exit
mov x0, 0
svc #0
.section .note.GNU-stack,"",@progbits