PLEASE COMMENT CODE AND TEST THAT IT WORKS:
Write a assembly program to find the largest item in an array and store it in a AX.
Hint: Use both Jump and loop instruction to write the program.
logic:
Assume that the first item of the array is the minimum and store it in AX
Write a loop. Inside the loop, compare the each array item with the AX
If the array item is less than the AX, update AX with that variable
.data
Array WORD 10, 2, 23, 45, 21, 11
MINIMUM WORD ?
.code
; write your code
Get Answers For Free
Most questions answered within 1 hours.