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

Partial differentiation, In estimating the cost of a pile of bricks measure...

In estimating the cost of a pile of bricks measured as 2m*15m*1.2m,tape is stretched 1% beyond the standard length if the count is 450 bricks to 1m^3 and bricks cost $530 per 1000,

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

Matlab Code for DUAL SLOPE DAC., Hello, i need please Matlab Code for DUAL...

Hello, i need please Matlab Code for DUAL SLOPE DAC. Thanks Marcel

Three phase cage induction motor, ''A three phase cage induction motor runn...

''A three phase cage induction motor running at full load draws a stator current of 60A at a power factor of 0.8 lagging from a 415v, 50hz supply. Under the following conditions th

Hypothesis of this statement , A) For a given integer n, if n   2 is divisi...

A) For a given integer n, if n   2 is divisible by 4, then n2   4 is divisible by 16. State the hypothesis of this sentence and the conclusion. Give a direct proof of the statement

Produce a discrete time series, Produce a discrete time series y(t i ) by s...

Produce a discrete time series y(t i ) by super positioning 5 cosinusoidal components, for your own choice of the amplitudes (a j ) and frequencies (f j ). Add some Gaus

Does the adverse reaction of nausea, The table summarizes results from a cl...

The table summarizes results from a clinical trial (based on data from Pfizer, Inc). Use a 0.05 significance level to test the claim that experiencing nausea is independent of whet

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

Explain how conduction takes place in conductors, With the help of energy b...

With the help of energy bands explain how conduction takes place in conductors. On the basis of energy band materials are categorized as conductor is given below: Conducto

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