SCR_public/23SCR/SCR017-ARM/add-int32.s

17 lines
255 B
ArmAsm
Raw Permalink Normal View History

2024-12-09 11:58:49 +01:00
.equ SYS_EXIT, 93
.data
int1: .word 0x15
int2: .word 0x2
.text
.globl -start
_start : adr x3, int1
ldr w0, [x3]
adr x3, int2
ldr w1, [x3]
add w2, w0, w1
mov x0,#0
mov w8,SYS_EXIT
svc #0
.end