Write a marie program using a loop

Assignment Help Programming Languages
Reference no: EM131048052

1. Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times (e.g. 3 + 3 + 3 + 3 + 3 + 3) or add 6 three times (e.g. 6+6+6). You should write and run the program using MARIE simulator. Also write the code with Address, Instruction, and Comments.

2. You are designing an instruction set for your computer. All the instructions are of same size (11 bits long). The size of an address field is 4 bits. You have already designed five 2-address instructions and 40 1-address instructions. How many 0-address instructions can still you can fit? Justify your answer.

3. Write code to implement the expression: A= (B + C) * (D - E) on 3-, 2-, 1- and 0-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands.

Rationale

This assessment task covers topics on CPU operation and Instruction Set Architecture, and has been designed to ensure that you are engaging with the subject content on a regular basis. More specifically it seeks to assess your ability to:

o be able to demonstrate and appropriately use computer organisation and architecture terminologies;

o be able to investigate the internal operation of the Central Processing Unit (CPU) and describe how it is used to execute instructions;

o be able to investigate and describe in detail the essential elements of computer organisation including internal bus, memory,

Input/Output ( I/O) organisations and interfacing standards and discuss how these elements function;

Reference no: EM131048052

Questions Cloud

Provide one example of some kind of information technology : In your first posting, you are expected to provide one example of some kind of information technology tool that helps organizations share knowledge.
What is your view on this : What is your view on this?
Are these factors only relevant for statistical samples : Are these factors only relevant for statistical samples?
What is the mean hourly wages for all underemployed workers : What is the mean hourly wages for all underemployed workers? What was the estimated number of underemployed workers in the United States during October-November 2007?
Write a marie program using a loop : Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times (e.g. 3 + 3 + 3 + 3 + 3 + 3) or add 6 three times (e.g. 6+6+6). You should wr..
Advantages of a captive insurer in a risk management program : a. What is a captive insurer?b. Explain the advantages of a captive insurer in a risk management program.
Explain the following risk-financing techniques : a. Explain the meaning of risk financing. b. Explain the following risk-financing techniques.
The sources of information that a risk manager : a. Identify the sources of information that a risk manager can use to identify loss exposures.b. What is the difference between the maximum possible loss and probable maximum loss?
Develop a client satisfaction survey to gather qualitative : BSBHRM501B Manage human resources services Assessment Task. In this assessment task, you will demonstrate skills and knowledge required to collect feedback on and evaluate human resources service delivery

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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