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

Database management system, outline the three schema database architecture ...

outline the three schema database architecture clearly explaining each level and how the user view the information

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

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

Work laws for closed systems, In closed system 0.3kg of gas at 373K is expa...

In closed system 0.3kg of gas at 373K is expanded isothermally and reversibly from 1 mpa pressure to 200 kp. Given that cv= 718 j/kg k and R= 287 j/kgk.

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

Mechanical advantage, MA for pulling a 1500 gram cart up a 20 degree plane ...

MA for pulling a 1500 gram cart up a 20 degree plane up a 1 meter ramp using a wheel and axel. Wheel diameter is 8 cm

Delaunay triangulation algorithm, I need to write a program which employs d...

I need to write a program which employs delaunay triangulation method

Vector, for what values of (a,b) does the point P (0,a,b) lie on the line t...

for what values of (a,b) does the point P (0,a,b) lie on the line through Q (1,-1,4) and R (2,3,5)?

Accurately measure the fluid level, You are working as an engineer on a pro...

You are working as an engineer on a project that involved being able to accurately measure the fluid level change in a large outdoor holding tank. The fluid level rises and falls a

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