Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Revise the basic concepts of turnover and define turnover intent

Answered: 1 week ago

Question

What must a creditor do to become a secured party?

Answered: 1 week ago

Question

When should the last word in a title be capitalized?

Answered: 1 week ago