Question

Problem 6(15 Points) MARIE Assembly Programming Develop a MARIE program containing a main function which finds the smallest e
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ORG 100

Jump Start

Addr1, Hex 103

Size1, Dec 5

Array1,Dec 25

J, Dec 0 /loop variable for array1 and array2

min1, Dec 0 /minimum for array1

min2, Dec 0 /minimum for array2

One, Dec 1

lc, Dec 0

Dec 10

Dec 9

Dec -8

Dec 50

Addr2,   Hex 10A

Size2, Dec 10

Array2, Dec -6

Dec 10

Dec 19

Dec 59

Dec 100

Dec 0

Dec 2

Dec -10

Dec 88

Dec 16

Start,

Load Addr1

Add Size1

Subt One

Store lc

Loadi lc

Store min1

Load Size1

Subt One

Store J  

Loop, Load J

Skipcond 00

Jump After1

Jump Start2

After1, Load lc

Subt One

Store lc

Subt min1

Skipcond 00

Jump After2

Loadi lc

Store min1

After2, Load J

Subt One

Store J

Jump Loop

Start2,

Load Addr2

Add Size2

Subt One

Store lc

Loadi lc

Store min2

Load Size2

Subt One

Store J /overriding J for array2

Loop2, Load J

Skipcond 00

Jump After3

Jump Done

After3, Load lc

Subt One

Store lc

Subt min2

Skipcond 00

Jump After4

Loadi lc

Store min2

After4, Load J

Subt One

Store J

Jump Loop2

Done, Load min1

Load min2

Halt

Add a comment
Know the answer?
Add Answer to:
Problem 6(15 Points) MARIE Assembly Programming Develop a MARIE program containing a main function which finds the smallest element of an array T is shown below. The passing arguments and one sub...
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