23 lines
213 B
ArmAsm
23 lines
213 B
ArmAsm
|
|
.equ SYS_EXIT, 93
|
|
.equ SYS_WRITE, 64
|
|
|
|
.data
|
|
msg: .asciz "Hello World!\n"
|
|
.text
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
mov x0,#1
|
|
adr x1,msg
|
|
mov x2,#13
|
|
mov w8, #SYS_WRITE
|
|
|
|
svc #0
|
|
|
|
mov x0, #0
|
|
mov w8,#SYS_EXIT
|
|
svc #0
|
|
.end
|