Perform arithmetic computation, Engineering Mathematics

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.

Posted Date: 3/18/2013 6:01:50 AM | Location : United States







Related Discussions:- Perform arithmetic computation, Assignment Help, Ask Question on Perform arithmetic computation, Get Answer, Expert's Help, Perform arithmetic computation Discussions

Write discussion on Perform arithmetic computation
Your posts are moderated
Related Questions
#quExample - Electronics application of 3×3 System of Equations Find the electric currents shown by solving the matrix equation (obtained using Kirchhoff''s Law) arising from this

Let z 0 = a + ic, z 1 = b + id, z 2 = -id, and z = [z 0 + z 1 ]. Let z 0 be the apex of the wedge with one ray passing through z 1 and the other passing through z 2 , and

Hello, i need please Matlab Code for DUAL SLOPE DAC. Thanks Marcel

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

Ask quassignment writing estion #Minimum 100 words accepted#

Draw concentric circles of radii a and b, each centered at z=id (on the imaginary axis). Suppose φ(x,y) is a harmonic function inside the washer defined by these circles. The circl

model an equation to determine the amount of oil in a reservior

First systems were described as systems that had one method of storing energy.  Second order systems; wait for it.... have two methods of storing energy.  Using a similar mechanica


can you help be please to program a complex expression in matlab using monte carlo solution