Page 1 of 1

- Write an assembly program to find the largest item in an array and store it in a variable named MAXI - Hint: Use both

Posted: Thu Jul 14, 2022 2:12 pm
by answerhappygod
Write An Assembly Program To Find The Largest Item In An Array And Store It In A Variable Named Maxi Hint Use Both 1
Write An Assembly Program To Find The Largest Item In An Array And Store It In A Variable Named Maxi Hint Use Both 1 (36.59 KiB) Viewed 39 times
- Write an assembly program to find the largest item in an array and store it in a variable named MAXI - Hint: Use both Jump and loop instructions to write the program. - logic: - Assume that the first item of the array is the maximum and store it in variable MAXIMUM - Write a loop. Inside the loop, compare the each array item with the maximum - If the array item is greater than the MAXIMUM, update MAXIMUM with that array item. - data Array WORD 10,2,23,45,21,11 MAXIMUM WORD? - code ; write your code