17 lines
255 B
ArmAsm
17 lines
255 B
ArmAsm
|
.equ SYS_EXIT, 93
|
||
|
.data
|
||
|
int1: .quad 0x15
|
||
|
int2: .quad 0x2
|
||
|
.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
|