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

Building The Data Warehouse

Authors: W. H. Inmon

4th Edition

0764599445, 978-0764599446

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago

Question

Is conflict always unhealthy? Why or why not? (Objective 4)

Answered: 1 week ago