Answered step by step
Verified Expert Solution
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
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 ACStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started