How many 0-address instructions can still you can fit

Assignment Help Basic Computer Science
Reference no: EM131049419

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.

Reference no: EM131049419

Questions Cloud

E-commerce payment company ability to grow : When you're a global company that keeps expanding into new countries, how do you keep all of your consumer sites updated in the local language-without spending a ton of time and money? PayPal realized five years ago that if it didn't solve this pr..
Demand the respective number of items : List five prices and the quantity you would demand of the item at each price. Be sure to provide a description of the item as well as an explanation of why you would demand the respective number of items at each price.
Guidelines for the marketing strategy report : The main industry focused project for unit entails analysing the marketing strategy for a new product(s) or service innovation of a company/brand.
Result of the reimbursement offer : a. Will Lady Gaga wager more or less as a result of the reimbursement offer? b. What economic concept does your answer illustrate?
How many 0-address instructions can still you can fit : 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.
Percentage point drop in its unemployment rate : Suppose that for years East Confetti's short-run Phillips Curve was such that each 1 percentage point increase in its unemployment rate was associated with a 2 percentage point decline in its inflation rate. Then, during several recent years, the ..
Who are the detectives and why were they murdered : Who are the detectives? Why were they murdered? Who will be murdered? What will they be murdered with? Does anyone discover about the murderer? Who are the suspects? Who was the murderer?
Fed change the real federal funds rate : Suppose that inflation is 2 percent, the federal funds rate is 4 percent, and real GDP is 2 percent above potential GDP. According to the Taylor rule, in what direction and by how much should the Fed change the real federal funds rate?
Central london congestion charging scheme conversion : The city of London has been well known for its many historic sites, live theater, and heavy traffic. In spite of a sophisticated underground subway system known locally as the "tube," traffic delays, car exhaust, noise pollution, and vehicle-pedes..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  The professional design memo template

Using the Professional Design Memo template in Microsoft Word, create a memo to your employer which provides them with the travelers that have a balance due greater than or equal to $2000. In doing so, be sure to address the following requirements..

  Determine the date in opening of letter

If /home/jenny/draft and /home/alex/letter are links to same file and following sequence of events occurs, what will be date in opening of letter? Alex gives command vim letter.

  What advantages does using software

What advantages does using software have over just using the hardware circuits to program the computer?

  What campaigns already exists-breakdown

Prove the problem exists-Summarize the research from your secondary sources proving that the issue exists and what you understand about the problem. (Minimum 200 words)

  What are some of the more popular database management system

What are some of the more popular database management systems? Why use Oracle?

  How much laser be tipped before light no longer continues

If a laser is to be pointed into the end of the fibre, but is "tipped" to one side by θ degrees, how much can the laser be "tipped" before the light no longer continues down the fibre?

  Explain how the web user interfaces help donors

Explain how the Web user interfaces help donors to make decisions and relate the emotional thread demonstrated in the case study to the emotional design model as discussed in Chapter 5 of the textbook.

  Consider a lagrangian l

Consider a Lagrangian L that depends only on the magnitude of the velocity q(t ) of a particle which moves in ordinary three-di mensional space.

  What is the average disk transfer rate

Explain your results from your system evaluation. Considering what type of technology user you are, does your computer meet your needs or should you upgrade in the near future? What features will you include when considering purchasing a new compu..

  Write a program that tests all fetures of new instruction

Implement a new nonunary instruction in place of NOP called ASLMANY whose operand is the number of times the accumulator is shifted left. Allow immediate, direct, and stack-relative addressing.

  Develop an activity diagram for the scenario

Using the Activity Diagram above, produce a system sequence diagram, i.e. only include two swimlanes - one for the actor (PSSM employee) and the other for the entire system as a system class object.

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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