I'm very new to assembly language and I'm trying to develop a procedure that finds the highest value in an integer array, but I keep getting the error "Illegal Memory Reference" on lines 85,86, and 87. How am I suppose to fix this? Also, will the code I have find the highest value in the array?
highVal dw ?
data dw 0,0,0,0,0
input dw ?
count dw 0
findHigh proc
mov cx,0
mov bx,0
L3:
mov count,cx
mov si,count
inc bx
(85)mov highVal,data[si]
(86)mov input,data[bx]
(87)cmp highVal,input
jle L3
jg L4
L4:
mov ax, highVal
ret
findHigh endp