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

  Spreadsheet model of the heat transfer situation

Spreadsheet model of the heat transfer situation

  Bourne shell and design suitable functions

Bourne shell and design suitable functions

  Designing a solution to the problem

Designing a solution to the problem and implementing the design using principles of correct syntax

  Write a recursive implementation of euclids algorithm

Write a recursive implementation of Euclids algorithm

  Software engineering and microprocessor systems

Software is required for a simple house burglar alarm system.

  Implementation of memory management

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

  Data representation and logic

Representing Text and Numbers, Binary Arithmetic, Interpreting Logical Statements, Logic Puzzle, Binary and Algorithms.

  Hardware support to memory management

Study any two multicore processor architecture and discuss the following features briefly

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  Risk assessment of ict system

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

  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..

  Examine the behavior of airfoil

Write HW assignment written in Matlab airfoils have different C mc/4

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