cross-toolchain/bye-arm64.S
Alexey Sheplyakov b034a392ed bye.S: print "bye-bye ..." message
(for now only for aarch64 and armv7)
2022-11-21 16:29:10 +04:00

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