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

Notice at the gym, You notice at the gym that it appears more women tend to...

You notice at the gym that it appears more women tend to work out together, whereas more men tend to work out alone.  To examine whether this difference is significant, you collect

Power of iota, if the power of iota is even then what is the logic to break...

if the power of iota is even then what is the logic to break the power of iota

Modelling equations, model an equation to determine the amount of oil in a...

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

Value of n, Arrianna spended $5,500 at 7.5% p.a. compounded quarterly for '...

Arrianna spended $5,500 at 7.5% p.a. compounded quarterly for 'n' years. At the end of 'n' years, Arrianna got back $12,000. What is the value of n? (Approximate your answer in yea

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

Loop transfer function, Given the loop transfer function G(s)H(s) = k/s(...

Given the loop transfer function G(s)H(s) = k/s(s+3)(s+4)(s+5) (a) Sketch the root locus plot for G(s)H(s). (b) What is the system gain at s = -1+ 2i? (c) Calculate the

Provide a derivation, This is a pen and paper exercise, you are expected to...

This is a pen and paper exercise, you are expected to provide a detailed derivation. Follow the procedure outlined in the lectures for construction of a simple averaging by thr

Some children are afraid of snakes, change each of the following propositio...

change each of the following propositions into symbolic form. De ne the universe of discourse and the predicates you use. (i) Some children are afraid of snakes. (ii) All com

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