Question

Write a MARIE program in assembly to compute the maximum elements of two arrays.

Write a MARIE program in assembly to compute the maximum elements of two arrays.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

change Output format of MARIE program to print into decimal values:

.ORG 100
means that your code will start not from '0' address, but from 100, it's often used for (.com) file format for (8086 CPU).

Program:-

ORG 100
Load First
Store Next
Load Array
Store Max
Loop, Clear
AddI Next
Subt Max
Skipcond 000
Jump NewMax
NextIdx, Load Next
Add One
Store Next
Load Count
Subt One
Skipcond 800
Jump Print
Store Count
Jump Loop
NewMax, Clear
AddI Next
Store Max
Jump NextIdx
Print, Load Max
Output
Halt
First, Hex 11E
Next, Hex 0
Max, Dec 0
Count, Hex 8
One, Dec 1
Array, Dec -1
Dec 10
Dec -15
Dec 25
Dec -25
Dec 120
Dec 13
Dec -10

Add a comment
Know the answer?
Add Answer to:
Write a MARIE program in assembly to compute the maximum elements of two arrays.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT