22 lines
214 B
ArmAsm
22 lines
214 B
ArmAsm
|
.equ SYS_EXIT, 93
|
||
|
|
||
|
.data
|
||
|
int1: .word 0x7fffffff
|
||
|
int2: .word 0x1
|
||
|
|
||
|
.text
|
||
|
.globl _start
|
||
|
_start:
|
||
|
adr x3,int1
|
||
|
ldr w0,[x3]
|
||
|
adr x3,int2
|
||
|
ldr w1,[x3]
|
||
|
|
||
|
adds w2,w0,w1
|
||
|
mrs x4,nzcv
|
||
|
|
||
|
mov x0, #0
|
||
|
mov w8,#SYS_EXIT
|
||
|
svc #0
|
||
|
.end
|