20 lines
215 B
ArmAsm
20 lines
215 B
ArmAsm
|
.equ SYS_EXIT, 93
|
||
|
.data
|
||
|
int1: .quad 0x15
|
||
|
int2: .quad 0x2
|
||
|
.text
|
||
|
|
||
|
.globl _start
|
||
|
_start:
|
||
|
mov x0,#1
|
||
|
lsl x1,x0,#3
|
||
|
lsr x2,x0,#1
|
||
|
adr x6,int
|
||
|
ldr x3,[x6]
|
||
|
lsr x4,x3,#3
|
||
|
asr x5,x3,#3
|
||
|
|
||
|
mov w8,#SYS_EXIT
|
||
|
svc #0
|
||
|
.end
|