I am trying to add Array elements and store in Ax I successfully did it but my loop is not terminating. when I execute the program loop does not end. please try to help me out.
Here is my code.
org 0x0100
jmp start
Arr: dw 16h,50h,30h
start:
mov bx, 1
mov ax, 0
top1:
cmp bx, 3h
jne end1
end1:
add ax,[Arr+bx]
add bx, 2
loop top1
INT 21h