- Write an assembly program to find the largest item in an array and store it in a variable named MAXI - Hint: Use both
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
- Write an assembly program to find the largest item in an array and store it in a variable named MAXI - Hint: Use both
- 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!