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

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

Estimate the time constant and maximum vertical acceleration, The vertical ...

The vertical motion of a general aviation airplane subjected to a sharp-edged wind gust is described by the equation Δw(t) = A g (1-e -t/τ ) assume A g = 30 where Δ w is in

Simulating the second order system, First systems were described as systems...

First systems were described as systems that had one method of storing energy.  Second order systems; wait for it.... have two methods of storing energy.  Using a similar mechanica

Calculate the heat transfer coefficient , A house wall may be approximated ...

A house wall may be approximated as two 1.2 cm layers of fiber insulating board, a 8 cm layer of loosely packed asbestos, and 10 cm layer of common brick. Assuming convective heat

Control theory., Hi I have just received a math assignment and was wonder...

Hi I have just received a math assignment and was wondering if you can take a look at it and tell me if you can be finished before the 12th of february and what the cost will be.

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

Calculus, Ask questioA mass on a spring vibrates. Its position at time t fr...

Ask questioA mass on a spring vibrates. Its position at time t from its starting point is x(t) = 2 cos(t) e t Find the velocity and acceleration at time t. What is the behavior of

Dynamics, The acceleration of an oscillating particle is defined by the rel...

The acceleration of an oscillating particle is defined by the relation a = -kx Determine the value of k such that v = 15 in./s when x = 0 and x = 3 in. and v = 0, the speed of the

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