21 lines
327 B
Text
21 lines
327 B
Text
.equ STDERR, 2
|
|
.equ SVC_WRITE, 64
|
|
.equ SVC_EXIT, 93
|
|
|
|
.text
|
|
.global _start
|
|
|
|
_start:
|
|
stp x29, x30, [sp, -16]!
|
|
mov x0, #STDERR
|
|
ldr x1, =msg
|
|
mov x2, 15
|
|
mov x8, #SVC_WRITE
|
|
mov x29, sp
|
|
svc #0 // write(stderr, msg, 15);
|
|
ldp x29, x30, [sp], 16
|
|
mov x0, #0
|
|
mov x8, #SVC_EXIT
|
|
svc #0 // exit(0);
|
|
|
|
msg: .ascii "Goodbye World!\n"
|