Question: Given the instruction set for MARIE: Instruction Opcode Instruction Instruction Opcode Instruction 0 JnS X 7 Halt 1 Load X 8 Skipcond (00 for AC
Given the instruction set for MARIE:
Instruction Opcode | Instruction | Instruction Opcode | Instruction |
| 0 | JnS X | 7 | Halt |
| 1 | Load X | 8 | Skipcond (00 for AC<0, 01 for AC=0, 10 for AC>0) |
| 2 | Store X | 9 | Jump X |
| 3 | Add X | A | Clear |
| 4 | Subt X | B | AddI X |
| 5 | Input | C | JumpI X |
| 6 | Output |
Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and then find the largest number and print it out. You do not need to store the input numbers.
Attach your .mas file here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
