16 lines
463 B
Text
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:
|