Question: 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

 help please use marie simulator will upvote MARIE Program Assignment Write

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

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!