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

Partial Differentiation, if the sides of a triangle ABC vary in such a way ...

if the sides of a triangle ABC vary in such a way that it''s circum-radius remains constant. prove that, da/cos A+db/cos B+dc/cos C =0

Expression to be programmed in matlab, can you help be please to program a ...

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

Electrical, The P.D. at the feeder end of a two wire d.c. distributor is 6...

The P.D. at the feeder end of a two wire d.c. distributor is 600 volts. Two loads are connected to the distributor at distances of 600 feet and 1000 feet from the feeder end and t

Harmonic function, Let z 0 = a + ic, z 1 = b + id, z 2 = -id, and z =...

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

Vector, prove that A=3i+j-2k, B=-i+3j+4k ,C=4i-2j-6k and find the length of...

prove that A=3i+j-2k, B=-i+3j+4k ,C=4i-2j-6k and find the length of the triangle

Time, Two boys A and B are at two diametrically opposite points on a circle...

Two boys A and B are at two diametrically opposite points on a circle. At one instant the two start running on the circle; A anticlockwise with constant speed v and B clockwise wit

Dynamics, The acceleration of an oscillating particle is defined by the rel...

The acceleration of an oscillating particle is defined by the relation a = -kx Determine the value of k such that v = 15 in./s when x = 0 and x = 3 in. and v = 0, the speed of the

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

Two distinct case, A) Prove the following theorem by considering two distin...

A) Prove the following theorem by considering two distinct cases. For any integer n, n 2 + n is even. B)  If x = r 2  - s 2 and y = 2rs for any integers r and s, then x 2 +

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