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

Lagrangian coef?cient polynomials, Prove that the Lagrangian coef?cient pol...

Prove that the Lagrangian coef?cient polynomials for p n (x) satisfy ∑ n k=0 l k (x) = 1. Hint: It is only a 3-line proof. Consider the interpolating polynomial for a constan

Vector, for what values of (a,b) does the point P (0,a,b) lie on the line t...

for what values of (a,b) does the point P (0,a,b) lie on the line through Q (1,-1,4) and R (2,3,5)?

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.

Compounded monthly , Verify how long $400 must be left to store at 12 % p.a...

Verify how long $400 must be left to store at 12 % p.a. compounded monthly for it to amount to triple the soted value of another $400 deposited at the similar time at 8.8% p.a. com

Truss elements and fe project, A new gantry crane for a metal fabrication s...

A new gantry crane for a metal fabrication shop is to be designed. The designer has proposed the following two different configurations: A. Using only truss elements B. Using the

Modeling, As an engineering student, the ministry of energy and minerals ha...

As an engineering student, the ministry of energy and minerals has tasked you to help them model equation(s) that can estimate the amount of crude oil in a reservoir. The governmen

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.

Describe basic fourier theory, An experiment conducted over time T necessar...

An experiment conducted over time T necessarily produces a windowed view of the phenomenon generating the data. It is a useful strategy to regard the windowed data as one period of

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

Convolution, can you tell me what is the physical intrepetation of convolut...

can you tell me what is the physical intrepetation of convolution theorm or convolution integral?

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