24 lines
207 B
ArmAsm
24 lines
207 B
ArmAsm
|
.equ SYS_EXIT, 93
|
||
|
.equ SYS_WRITE, 64
|
||
|
|
||
|
.data
|
||
|
msg: .asciz "Hello World!\n"
|
||
|
.text
|
||
|
|
||
|
.global _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
|