Write the required ASM program as under:
1)Define a integer array and its elements (integers) without any duplicates.
2)Define the integer to be searched(X) and a variable FOUND to indicate finding of required data.
3)Loop through the array to determine if X is in the array.
4)If X is found, the FOUND should be set , the index should be set to location of X and the rest of array need not be searched. If X is not found FOUND should be reset, and the index should be set to one greater than elements in the array.
Note: program should be in 62 bit assembly language
eg: ecx, eax, edx etc.