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

Monthly payment, Ah Fong borrow RM10 000. The yearly simple interest rate i...

Ah Fong borrow RM10 000. The yearly simple interest rate is 10.5%, payable monthly, and the monthly payment is RM200. How much of the 1st payment goes to interest and how much to p

Expression to be programmed in matlab, can you help be please to program a ...

can you help be please to program a complex expression in matlab using monte carlo solution

Jacobi and gauss-sidel , Code and test Jacobi and Gauss-Sidel solvers for a...

Code and test Jacobi and Gauss-Sidel solvers for arbitrary diagonally dominant linear systems.

Optimization, Valid objective function for a LPP with x,y,z as decision var...

Valid objective function for a LPP with x,y,z as decision variables

Mechanics, elongation of conical bar under its own weight is what fraction ...

elongation of conical bar under its own weight is what fraction of rectangular bar

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

Lean manufacturing, Ask quassignment writing estion #Minimum 100 words acce...

Ask quassignment writing estion #Minimum 100 words accepted#

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

Vibration of Electronic s Module, An electronic module is mounted on a mac...

An electronic module is mounted on a machine and is modelled as a single degree of freedom spring, mass, and damper. During normal operation, the module of mass m kg is subject to

Calculate principal value of the root, Compute the (real and imaginary part...

Compute the (real and imaginary parts of the) principal value of the eighth root of (a + ib) to 3 decimal places (accurate to 10 -3 ). Call the real part "m 7 ", and the imagina

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