RosettaCodeData/Task/Hello-world-Standard-error/AArch64-Assembly/hello-world-standard-error-2.aarch64
2025-06-11 20:16:52 -04:00

16 lines
463 B
Text

.global _start
.text
_start:
mov x8, #64 //64 is write
mov x0, #2 //2 is stderr
adr x1, msg //mov address of msg into x1
mov x2, #(msgend - msg) //msgend minus msg is the length of message
svc #0 //system call
mov x8, #93 //93 is exit
mov x0, #0 //0 is the exit code.
svc #0 //system call
msg:
.ascii "Goodbye, World!\n"
msgend: