data segment
ARR db 01h,03h,02h,04h,05h,09h,01h
data ends
code segment
assume cs:code,ds:~data --just to avoid the smiley
start:
MOV AX,data
MOV DS,AX
MOV CX,0006H --Load CX with 6 as there will be 6 comparisons b/w 7 numbers
MOV SI,offset ARR --point to the variable ARR
MOV AL,[SI] --load...