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

Compute the linear arc distance, Question Assume the earth is a sphere ...

Question Assume the earth is a sphere with a radius of 6,371,000.000 meters. Three points are defined by their latitude and longitude. Point Latitude (N) Longitude (W) A

All.., Ask question #Minimum 100thank you words accepted#

Ask question #Minimum 100thank you words accepted#

Curve tracing in polar and cartesian form, i want assignment or notes on cu...

i want assignment or notes on curve tracing in polar form and cartesian form

Fast fourier transform, From this point on it is assumed that any problem a...

From this point on it is assumed that any problem amenable to solution with the aid of the Discrete Fourier Transform (or DFT) will in fact be treated computationally with a fast r

Jacobian, if u=x^2-2y^2, v=2x^2-y^2 and x=rcosp ad y=rsinp, find the value ...

if u=x^2-2y^2, v=2x^2-y^2 and x=rcosp ad y=rsinp, find the value of the jacobian d(u,v)/d(r,p)

Linear programming applications to industry, I need a research paper. The c...

I need a research paper. The concept is to develop a new linear programming was not introduced in the art literature before then apply the LP to spcific industry

Thermal stress, a restrained steel bar is heated from 20 degrees to 194 deg...

a restrained steel bar is heated from 20 degrees to 194 degrees and not permitted to expand. the bar is 10mm diameter, determine the thermal stress in the bar

Delaunay triangulation algorithm, I need to write a program which employs d...

I need to write a program which employs delaunay triangulation method

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