SCR/ARM/printHW.s

24 lines
207 B
ArmAsm
Raw Permalink Normal View History

2023-05-26 13:48:24 +02:00
.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