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

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?

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.

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

A cosmetic store offer , A cosmetic store offer at RM245 for a package, con...

A cosmetic store offer at RM245 for a package, consisting of a foundation, a compact powder and a lipstick, which is saving of 15% on the cost of buying the units indiviually. If b

Modelling equations , how to model equations to determine the amount of oil...

how to model equations to determine the amount of oil in a reservior

Real and imaginary parts, What, to 3 decimal places, is the principal value...

What, to 3 decimal places, is the principal value of [a - ic] (b + id)/10 (real and imaginary parts)? Call the real part, and the imaginary part. Give one (any) other value of th

Numerical integration, There are many situations which call for the replace...

There are many situations which call for the replacement of an integral by a sum, or vice versa. In the former case the highest accuracy is sometimes required. This means that in t

Evaluate the fermat''s method algorithm, 1. (i) How many digits does the nu...

1. (i) How many digits does the number 101000 have when written to base 7 ? (ii) Use the prime number theorem to estimate the proportion of prime numbers among the positive inte

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