BUT2/SCR/SCR1.2/TP16-ARM/test.s

23 lines
213 B
ArmAsm
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
.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