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

Maths, How to solve the problems

How to solve the problems

Temperature function, If a temperature function is given in the x,y plane b...

If a temperature function is given in the x,y plane by T(x,y) = x+y, what is the value, to 3 decimal places, of the corresponding temperature function T1(u,v) at the point (u,v) =

Galerkin Mrthod, Solve differential equation of Y" = 0 using the Galerkin m...

Solve differential equation of Y" = 0 using the Galerkin method and considering 0 = x= 3 given that: h = 0cm when x = 0m and h = 10cm when x = 3m.

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

Weighted aggregate , The data of the table below give details of the compon...

The data of the table below give details of the components, prices and standard quantities used in making a kind of chemical. Measure  the composite index with 2007 as base year us

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 +

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

Jacobi and gauss-sidel , Code and test Jacobi and Gauss-Sidel solvers for a...

Code and test Jacobi and Gauss-Sidel solvers for arbitrary diagonally dominant linear systems.

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