ARR db 01h,03h,02h,04h,05h,09h,01h
assume cs:code,ds:~data --just to avoid the smiley
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 the first number 01H in AL register
loop_start: --label to mark the beginning of the loop
INC SI --point to the second number in ARR
do you think that this is the right code to find the largest of the given number?
This is my own program and it didnt work well when I executed it. Dont know whats going wrong.
More about :debug 8086 assembly level program find greatest number