I have an array of 10 int and I am trying to write a loop to calculate a number of occurrence of a specific integer which I stored in a variable in x86 assembly using the Irvine32 library
the int i want to calculate number of occurrence of it is stored in "maxi" the var where i will count in is "numofocc" array 's type is word so i add 2 to the array to move to the next place
mov ecx ,10
L:
cmp maxi , [array]
je count
add array ,2
count:
add numofocc ,1
add array ,2
loop L