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

  Describe stages of the processor

Describe the decode stage and Describe the execution stage of add, andi, mul, divi, and neg.

  Find minimal cover and identify all possible candidate keys

Find minimal cover and identify all possible candidate keys - Functional Dependencies

  Calculate the output value of problem

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

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a use case diagram

Prepare a Use Case Diagram based on the given problem description.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

  Implementation of memory management

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

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  Bourne shell and design suitable functions

Bourne shell and design suitable functions

  Define a suitable functional unit

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

  Calculate the component voltages

Input voltage will be a step voltage that is 0 volt before time t = 0 and V in

  Speed routing protocol

Following question is related to SPEED routing protocol-Multiple speeds are computed in MAC layer. The forwarder with highest speed is selected on MAC layer feedback. This selection could not produce a shortest path.

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