Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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