Question1 runattached file addtwonumbersmas is a marie

Assignment Help Computer Engineering
Reference no: EM13348271

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: EM13348271

Questions Cloud

Questionivan and irene have the given investment : questionivan and irene have the given investment incomedividends qualified on big bank stock 850dividends qualified on
Questiona consider on how you would know if a computer were : questiona. consider on how you would know if a computer were thinking like a humanb. someone with very little knowledge
Questionevaluate an annual report of a publicly held : questionevaluate an annual report of a publicly held corporation of your selection on the internet not the general
Questiontwo members of your project development team are : questiontwo members of your project development team are differing about relative significance of training and
Question1 runattached file addtwonumbersmas is a marie : question1 runattached file addtwonumbers.mas is a marie program to do plain addition of two number already stored in
Questioncnt books has expanded considerably as you first : questioncnt books has expanded considerably as you first got network up and running three years ago. it at the present
Questioncarol benton marcia diamond and sue knox work for a : questioncarol benton marcia diamond and sue knox work for a family physician dr. gwen conrad who is in private
Questiondescribe us what type of data standard are we : questiondescribe us what type of data standard are we dealing with in each scenario metadata spatial or attribute?1.
Question 1a outline the provisions of occupational safety : question 1a outline the provisions of occupational safety and health act 2005 with regard to substances hazardous to

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

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

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  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?

  Implementation of memory management

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

  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 proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  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.

  Define a suitable functional unit

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

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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