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

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!