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

MEAN VALUE THEORM, APPLICATIONS OF LAGRANGE''S MEAN VALUE THEORM?

APPLICATIONS OF LAGRANGE''S MEAN VALUE THEORM?

Permutation and combination, The number ways of choosing 2 boys and 2 girls...

The number ways of choosing 2 boys and 2 girls in a class for a game of mixed doubles is 1620. Then, what is the number of ways of choosing 2 students in the class?

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

Dot plot graph, What does a dot plot graph look like with the measurements ...

What does a dot plot graph look like with the measurements 85.1 mm,85.0 mm,85.2 mm, and 85.1 mm

Mechanical advantage, MA for pulling a 1500 gram cart up a 20 degree plane ...

MA for pulling a 1500 gram cart up a 20 degree plane up a 1 meter ramp using a wheel and axel. Wheel diameter is 8 cm

Matlab and mathmtical., #quesare you can do matlab project for patient sway...

#quesare you can do matlab project for patient sway signal sway measured by center of pressure (cop), to obtain characteristics in ( x,y,z) like velocity profile and acceleration,

MUPAD, I have some work in Mupad i need doing. Its on Diff equations. Canb ...

I have some work in Mupad i need doing. Its on Diff equations. Canb you guys help?

Beta gamma functions, integral dx/root of sinx using beta and gamma functio...

integral dx/root of sinx using beta and gamma functions

Find the controllability matrix, An open-loop control system has the follow...

An open-loop control system has the following state-space model: (a) Find characteristic equation of the open-loop control system model. (b) What is the characteristic e

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