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

  Use-professional translator in creting website-other country

When and why would you need to use the services of a professional translator to help prepare your website for an audience in another country?

  Prepare function for one integer parameter-returns integer

Prepare the C++ function which needs one integer parameter and returns the integer value. Function will double value passed to it and return doubled value.

  Classifications and descriptions information to enter record

Use the Job classifications and descriptions information to enter records into the Job Title table for the following titles:

  Design a modularized body mass index (bmi) program

Design a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player.

  Write a program that tests a sequence has an at repeat

Write a program that tests to see whether a sequence has an AT repeat - Return a message to the user whether or not an AT repeat exits in the sequence. Use at least one subroutine.

  Pseudocode to read in data file containing student names

Read in a data file containing student names, ID number, and gender into an array. Print the contents of each record using the array.

  Summary of the technical experiences that you used

Create the logic for a program that accepts input values for the projected cost of a vacation and the number of months until vacation. A summary of the technical experiences that you used in completing this lab. The commands that were of greatest be..

  Use the arduino to make resistance meter

"use the arduino to make resistance meter. this should allow the user to plug a resistor into the breadboard and tell them what the resistance is"

  Effective transfer rate from the server to the workstation

what is the effective transfer rate from the server to the workstation?

  Program to match exam score to a letter grade

Create algorithm which will prompt the operator for student's serial number and student's exam score out of 100. Your program is then to match exam score to a letter grade.

  About css property configures

Which of the following is the CSS property used to set the background color of a webpage?

  Write a method to store the product of the two arrays

Design an application that includes three arrays of type int. Allow the user to enter values into the first two.Write a method to store the product of the two arrays in the third array

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