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

Find the polynomial, a) Use divided differences to ?nd the polynomial (in n...

a) Use divided differences to ?nd the polynomial (in nested form) that interpolates the data b) Add the data point x = 6, y = -20 and hence estimate y for x = 2.

Trigonometric functions, definition of trigonometric function #Minimum 100...

definition of trigonometric function #Minimum 100 words accepted#

Saving account at birth of their children, Parents put $1000 into a saving ...

Parents put $1000 into a saving account at birth of their children. If the account earns interest at 7% p.a compounded yearly, how much money will be in the account when their chil

Vector, prove that A=3i+j-2k ,B= -i+3j+4k, C=4i-2j-6k can form a triangle a...

prove that A=3i+j-2k ,B= -i+3j+4k, C=4i-2j-6k can form a triangle and find the length of the medians of the triangle.

Substitution method, Answer the following set of simultaneous equations usi...

Answer the following set of simultaneous equations using elimination or substitution method. a) x-y +z= 10 b) 3x+y+2z=34 c) -5x+2y-z=-14

Does the jury selection system appear, In the case of Castenedav . Partid...

In the case of Castenedav . Partida , it was found that during a period of 11 years in Hilda County, Texas, 870 people were selected for grand jury duty, and 39% of them were Ame

Power of iota, if the power of iota is even then what is the logic to break...

if the power of iota is even then what is the logic to break the power of iota

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

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,

Determine the missing entries, Determine the missing entries in the followi...

Determine the missing entries in the following divided difference table and use the result to estimate f(1/2).

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