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

Differential Equations - Linear, Solve the initial value problem 11(t+1)dy...

Solve the initial value problem 11(t+1)dydt-7y=28t, for t>-1 with y(0)=14. Put the problem in standard form. Then find the integrating factor, ?(t)= , and finally find y(t)=

Bad Illustration, There is an illustration of a diesel engine sixteen cylin...

There is an illustration of a diesel engine sixteen cylinder that is supposed to be four-cycle, however GM never made engines of that size that were not two-cycle. The four valves

Laplace transform, basic properties on the inverse of laplace transform

basic properties on the inverse of laplace transform

Fuel tank, in the diagram shown below, the fuel tank which is of uniform cr...

in the diagram shown below, the fuel tank which is of uniform cross section and of length 8m is position so that the rear of the tank is 19 metres from the datum. the mass of the f

Matlab and mathmtical., #quesare you can do matlab project for patient sway...

#quesare you can do matlab project for patient sway signal sway measured by center of pressure (cop), to obtain characteristics in ( x,y,z) like velocity profile and acceleration,

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

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

Solve the following logarithmic equations, 1. Joe and Sam each invested $20...

1. Joe and Sam each invested $20,000 in the stock market. Joe's investment increased in value by 5% per year for 10 years. Sam's investment decreased in value by 5% for 5 years and

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