How to run and modify marie program

Assignment Help Computer Engineering
Reference no: EM132215

Question

(1) RUN

Attached file "add_two_numbers.mas" is a MARIE program to do plain addition of two number already stored in memories (Num1, Num2).

Answer is stored at Result and also put in Output window
(the Output Register).

RUN the program and confirm that it works in your downloaded copy of the MARIE Simulator.

(2) MODIFY (Make another program based on that one)

Copy that file and rename copy "Add_Four_if_result_positive.mas".

Change that program in two ways-

(a) Make it add four numbers (Num1, Num2, Num3, Num4) in its place of the two it originally handled.

(b) Include a decision before storing and outputing result. If value of the result is not positive (so zero or negative), set
Result value to the value ZERO (0).

So, program will implement this kind of logic-

Result = Num1 + Num2 + Num3 + Num4;
If (Result < 1) Result = 0;
Output Result;

This will require figuring out how SkipCond instruction works and whether to give it a Hex operand of 000, 400, or 800.

 

Reference no: EM132215

Questions Cloud

Evaluate the income statement : Evaluate the income statement in the given case.
Can you suggest process for choosing appropriate data-mining : Consider on how you would know if a computer were thinking like a human.
Evaluate an annual report of a publicly held corporation : Evaluate an annual report of a publicly held corporation of your selection on the internet (not the General Electric annual report).
Explain the reason for the project development : Two members of your project development team are differing about relative significance of training and documentation.
How to run and modify marie program : How to run and modify marie program Include a decision before storing and outputing result. If  value of the result is not positive (so zero or negative), set  Result value to the value ZERO (0)
What devices use to get efficient network communication : CNT Books has expanded considerably as you first got network up and running three years ago. It at the present occupies an entire floor in building, and its LAN has full-grown to contain several servers and more than 60 workstations.
Would a bank reconciliation uncover office fraud : Who is the best employ in Dr. Conrad's office to reconcile the bank statement? Would a bank reconciliation uncover office fraud?
Type of data standard : What type of data standard are we dealing with in each scenario (metadata, spatial or attribute)? You work for Town of Ancaster prior to an amalgamation of New City of Hamilton. Your main responsibility was to retain Town's single line road network f..
Types of hazard which arise from the use of chemicals : Outline the provisions of Occupational Safety and Health Act 2005 with regard to Substances hazardous to health Describe four types of hazard which arise from the use of chemicals

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Intermediate programming

Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

  Security vulnerability

What is the security vulnerability of this solution

  Explain interval and arithmetic coding

Evaluate the cumulative distribution function and the binary intervals

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Write a recursive implementation of euclids algorithm

Write a recursive implementation of Euclids algorithm

  Risk assessment of ict system

Risk Assessment of ICT System and Developing Computer Incident Response System on WAMP platform

  Application to computer science

Find the matrices that represent the relations.

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Convert csv file into html file

Convert CSV file into HTML file

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd