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

Three phase cage induction motor, ''A three phase cage induction motor runn...

''A three phase cage induction motor running at full load draws a stator current of 60A at a power factor of 0.8 lagging from a 415v, 50hz supply. Under the following conditions th

Substitution method, Answer the following set of simultaneous equations usi...

Answer the following set of simultaneous equations using elimination or substitution method. a) x-y +z= 10 b) 3x+y+2z=34 c) -5x+2y-z=-14

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

Mechanics, elongation of conical bar under its own weight is what fraction ...

elongation of conical bar under its own weight is what fraction of rectangular bar

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

Lpp, Use the simplex method to solve the following LP Problem. Max Z = 107...

Use the simplex method to solve the following LP Problem. Max Z = 107x1+x2+2x3 Subject to 14x1+x2-6x3+3x4=7 16x1+x2-6x3 3x1-x2-x3 x1,x2,x3,x4 >=0

Linear Programming, A company manufactures an assembly consisting of a fram...

A company manufactures an assembly consisting of a frame, a shaft, and a ball bearing. The company manufactures the shafts and frames but purchases the ball bearings from a ball be

Define a mapping from the x-y plane, Define a mapping from the x,y plane to...

Define a mapping from the x,y plane to the u,v plane by u = 2x + y, v = -x +2y . If a temperature function is given in the x,y plane by T(x,y) = x+y, what is the value, to 3 de

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