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

Power of iota, if the power of iota is even then what is the logic to break...

if the power of iota is even then what is the logic to break the power of iota

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

Ask question #Minimum 100thank you words accepted#

Notice at the gym, You notice at the gym that it appears more women tend to...

You notice at the gym that it appears more women tend to work out together, whereas more men tend to work out alone.  To examine whether this difference is significant, you collect

Partial differentiation, In estimating the cost of a pile of bricks measure...

In estimating the cost of a pile of bricks measured as 2m*15m*1.2m,tape is stretched 1% beyond the standard length if the count is 450 bricks to 1m^3 and bricks cost $530 per 1000,

The circular function and eqautions, Question 1 Find all solutions of t...

Question 1 Find all solutions of the following equations in the interval [0, 2π) (a) sin(2x) = √2 cos(x). (b) 2 cos 2 (x) + 3 sin(x) = 3. 2. Sketch the graph of the ci

Research poll, A Pew Research poll was conducted to investigate opinions ab...

A Pew Research poll was conducted to investigate opinions about global warming.  The respondents who answered yes when asked if there is solid evidence that the earth is getting wa

Explain how conduction takes place in semiconductors, With the help of ener...

With the help of energy bands explain how conduction takes place in semiconductors. Semiconductors: Substances as carbon, germanium and silicon that electrical conductivity l

Geometric construction of numerical integration, The integral has a...

The integral has an exact answer, viz., sinc(pfT). As T®¥ the sinc function tends to zero. Divide the region from -T/2 to T/2 into N equal parts and sum the rectangles on b

Dynamics, A stone weighing 50 newton is tied to one end of a cord 0.90 mete...

A stone weighing 50 newton is tied to one end of a cord 0.90 meter long. the stone is then whirled in a vertical circle. if the breaking strength of the cord in tension is 60 newto

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