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

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

Angle of elevation, If V is the initial speed of the ball at angle of ele...

If V is the initial speed of the ball at angle of elevation a , if the origin of the coordinate system is chosen to coincide with the propulsion device, then the initial conditi

Calculus, Ask questioA mass on a spring vibrates. Its position at time t fr...

Ask questioA mass on a spring vibrates. Its position at time t from its starting point is x(t) = 2 cos(t) e t Find the velocity and acceleration at time t. What is the behavior of

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

Solid mensuration, The two sides of a triangle are 17 cm and 28 cm long, an...

The two sides of a triangle are 17 cm and 28 cm long, and the length of the median drawn to the third side is equal to 19.5 cm. Find the distance from an endpoint of this median to

Trigonometric functions, definition of trigonometric function #Minimum 100...

definition of trigonometric function #Minimum 100 words accepted#

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

Ask question #Minimum 100thank you words accepted#

Compute the real and imaginary parts, The data in this exam are a set of 6 ...

The data in this exam are a set of 6 integers a through f, based on your social security number. Write the LAST 6 digits of your social security or ID number in the spaces below, t

Multiple inyegral, Ask question #how to identify region of the integral sum...

Ask question #how to identify region of the integral sum#

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