Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
406 B
1
Indexable
Never
section .data
array : dq 0x0000123412341234,0x11111111ffffffff,0x12111111ffffffff,0xff111111ffffffff,0xff111111ffffffff

section .bss
cnt : resb 0


section .text

_global start

start:
mov byte[cnt],5
mov rsi,array
mov rax,qword[rsi]
up:
add rsi,8
mov rbx,qword[rsi]

cmp rax,rbx

jg l1
dec byte[cnt]
jz below
jmp up

l1:
dec byte[cnt]
mov rax,rbx
jz below
jmp up

below: