BUT2/SCR/SCR1.2/TP17-ARM/add32.s~

21 lines
209 B
ArmAsm
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
.equ SYS_EXIT, 93
.data
int1: .quad 0x7fffffffffffffff
int2: .quad 0x1
.text
.globl _start
_start:
adr x3,int1
ldr x0,[x3]
adr x3,int2
ldr x1,[x3]
add x2,x0,x1
mov x0, #0
mov w8,#SYS_EXIT
svc #0
.end