Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help please use marie simulator will upvote MARIE Program Assignment Write an Assembly language program in MARIE to do the following: B=B+A C=B+2 Please note

help please use marie simulator will upvote

image text in transcribed

MARIE Program Assignment Write an Assembly language program in MARIE to do the following: B=B+A C=B+2 Please note that MARIE does not have an add-immediate so you will have to place it in a memory location. However, MARIE does have input statement to read from the keyboard into the AC. It also has an output statement to display what is in AC. You can download MARIE from this site: Here is a cheat sheet for MARIE ISA: Mnemonic | Hex | Description ---- Add x | 3 Add the contents of address x to AC AddI X 1 B | Add indirect: Use the value at X as the actual 1 1 address of the data operand to add to AC Clear 1 | Put all zeros in AC Input 15 | Input a value from the keyboard into AC Halt 1 7 | Terminate program Jump X 1 9 | Load the value of x into PC JumpI X 1 | Use the value at X as the address to jump to Jns x 1 0 | Store the PC at address X and jump to X+1 Load x 1 1 | Load contents of address x into AC LoadI X 1 D | Load indirect: Use the value at x as the 1 1 address of the value to load. Output 1 6 | Output the value in AC to the display Skipcond X1 8 | Skip next instruction on condition 1 (See note below.) Store x 12 | Store the contents of AC at address x Storer X 1 E | Store indirect: Use x the value at x as the 1 1 address of where to store the value. Subt x 1 4 Subtract the contents of address x from AC

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Technology And Management Computers And Information Processing Systems For Business

Authors: Robert C. Goldstein

1st Edition

0471887374, 978-0471887379

Students also viewed these Databases questions

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

What are Electrophoresis?

Answered: 1 week ago

Question

a. What is the purpose of the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago