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

Numerical analysis, The system has a solution near (-0.5,-0.7). Set...

The system has a solution near (-0.5,-0.7). Set up the matrix equation Jδ = -f for Newton's method and then carry out one iteration, starting with x 0 = -0.5, y 0 = -0.7.

Six years time, A young couple requires RM30000 for an overseas trip which ...

A young couple requires RM30000 for an overseas trip which they want to make in six years time. How much they have to invest now at 18% p.a. compound interest compounded monthly, t

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

Power transmission, P=(Fv- ? Av3) (1-e-µ?) P is Power v is velocity of the ...

P=(Fv- ? Av3) (1-e-µ?) P is Power v is velocity of the belt ? is the density of the belt material ? = 1200 kg/m3 A is the cross sectional a

Statistics, what are median,mode,aveage,mode

what are median,mode,aveage,mode

The circular function and eqautions, Question 1 Find all solutions of t...

Question 1 Find all solutions of the following equations in the interval [0, 2π) (a) sin(2x) = √2 cos(x). (b) 2 cos 2 (x) + 3 sin(x) = 3. 2. Sketch the graph of the ci

A cosmetic store offer , A cosmetic store offer at RM245 for a package, con...

A cosmetic store offer at RM245 for a package, consisting of a foundation, a compact powder and a lipstick, which is saving of 15% on the cost of buying the units indiviually. If b

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