Perform arithmetic computation, Engineering Mathematics

Assignment Help:

a.) Give a short sequence of machine instructions for the task "Add the contents of memory location A to those of memory location B, and place the answer in location C". You have available the following instructions:

Load Ri, LOC

Store Ri, LOC

which are the only instructions to transfer data between the memory and the general purpose registers. After operands have been loaded from memory into processor registers, arithmetic computation can be performed, using the instructions:

ADD Ri, Rj, Rk

SUB Ri, Rj, Rk

where i, j, k need not be distinct. Do not change the content of either location A or B.

b.) Suppose now that you have Move and Add instructions available with the formats:

Move LOC1, LOC2

ADD LOC1, LOC2

These instructions move or add a copy of the operand at the second location to the first location, overwriting the original operand at the first location. Either or both of the operands can be in the memory or the general purpose registers. Is it possible to use fewer instructions of these types to accomplish the task of part (a)? If yes, give the sequence.


Related Discussions:- Perform arithmetic computation

Modelling equations , how to model equations to determine the amount of oil...

how to model equations to determine the amount of oil in a reservior

Find the polynomial, a) Use divided differences to ?nd the polynomial (in n...

a) Use divided differences to ?nd the polynomial (in nested form) that interpolates the data b) Add the data point x = 6, y = -20 and hence estimate y for x = 2.

Some children are afraid of snakes, change each of the following propositio...

change each of the following propositions into symbolic form. De ne the universe of discourse and the predicates you use. (i) Some children are afraid of snakes. (ii) All com

Database management system, outline the three schema database architecture ...

outline the three schema database architecture clearly explaining each level and how the user view the information

Six years time, A young couple requires RM30000 for an overseas trip which ...

A young couple requires RM30000 for an overseas trip which they want to make in six years time. How much they have to invest now at 18% p.a. compound interest compounded monthly, t

You are required to design an air-conditioner controller for, Below are the...

Below are the conditions specified by the institution: a) If the temperature sensor shows 30 degree Celsius or higher, the air-conditioner will be turned ON regardless of the othe

All.., Ask question #Minimum 100thank you words accepted#

Ask question #Minimum 100thank you words accepted#

Database management system, outline the three schema database architecture ...

outline the three schema database architecture clearly explaining each level and how the user view the information

I need a quote, i need a quote in analytical methods for engineers (Algebr...

i need a quote in analytical methods for engineers (Algebraic methods)

Does the jury selection system appear, In the case of Castenedav . Partid...

In the case of Castenedav . Partida , it was found that during a period of 11 years in Hilda County, Texas, 870 people were selected for grand jury duty, and 39% of them were Ame

Write Your Message!

Captcha
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