Question: Hello, I have tried to solve this MARIE Program Execution, but I worry I did not do it correctly. I need to use the following
Hello, I have tried to solve this MARIE Program Execution, but I worry I did not do it correctly. I need to use the following Tables for Depicting MARIE Program Execution.
You do not need to show how the Halt instruction is executed. Specify values in PC, IR, MAR, MBR, and AC in hexadecimal.
The program is as follows.
| Hex Address | Instruction | Binary Contents of Memory Address | Hex Contents of Memory |
| 100 | Load 105 | 0001 0001 0000 0101 | 1105 |
| 101 | Subt 104 | 0100 0001 0000 0100 | 4104 |
| 102 | Store 104 | 0010 0001 0000 0100 | 2104 |
| 103 | Halt | 0111 0000 0000 0000 | 7000 |
| 104 | 00A3 | 0000 0000 1010 0011 | 00A3 |
| 105 | 00F3 | 0000 0000 1111 0011 | 00F3 |
(a) Load 105
| Step | RTN | PC | IR | MAR | MBR | AC |
| (initial values) |
| 100 | ||||
| Fetch | MAR PC | 100 | 100 | |||
|
| IR M[MAR] | 100 | 1105 | 100 | ||
|
| PC PC + 1 | 101 | 1105 | 100 | ||
| Decode | MAR IR[11-0] | 101 | 1105 | 105 | ||
|
| (Decode IR[15-12]) | 101 | 1105 | 105 | ||
| Get operand | MBR M[MAR] | 101 |
|
|
|
|
| Execute | AC MBR | 101 |
|
|
|
|
(b) Subt 104
| Step | RTN | PC | IR | MAR | MBR | AC |
| (initial values) |
| 101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(c) Store 104
| Step | RTN | PC | IR | MAR | MBR | AC |
| (initial values) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
