Question: Modify the following MARIE assembly code to find the maximum value of the numbers given in the array whose starting address is given in addr

Modify the following MARIE assembly code to find the maximum value of the numbers given in the array whose starting address is given in addr and the number of element in Num. note that the numbers in array can be negative.  Modify the following MARIE assembly code to find the maximum value

LOAD Addr STORE Next LOAD Num SUBT One STORE Ctr 10E I SKIPCOND 00o JUMP Loop HALT 2 101 I 102 1 110 I 111 IAddrHEx 117 112 I Next HEX O 113 INum DEC 5 114 I Sum DEC o 115 ICtr HEX O 116 IOne DEC 1 105 1 Loop LOAD Sum ADDI Next STORE Sum LOAD Next ADD One STORE Next LOAD Ctr SUBT One STORE Ctr 118 I 119 I 11A I 11B I 10CI 1OD

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!