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

Christian maturity level , A researcher is interested in comparing the Chri...

A researcher is interested in comparing the Christian maturity level of students who volunteer for community service versus those who do not. The researcher suppose that those who

Geometric construction of numerical integration, The integral has a...

The integral has an exact answer, viz., sinc(pfT). As T®¥ the sinc function tends to zero. Divide the region from -T/2 to T/2 into N equal parts and sum the rectangles on b

Value of n, Arrianna spended $5,500 at 7.5% p.a. compounded quarterly for '...

Arrianna spended $5,500 at 7.5% p.a. compounded quarterly for 'n' years. At the end of 'n' years, Arrianna got back $12,000. What is the value of n? (Approximate your answer in yea

Partial Differentiation, if the sides of a triangle ABC vary in such a way ...

if the sides of a triangle ABC vary in such a way that it''s circum-radius remains constant. prove that, da/cos A+db/cos B+dc/cos C =0

Simlple annuities and its application, analyn bought a dining set.She paid ...

analyn bought a dining set.She paid 2500 as a downpayment and promised to pay 800 @ the end of each month for year.What s the cash eqivalent of the set if the interest rate is 10%

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

Math models, As an engineering student, the ministry of energy and minerals...

As an engineering student, the ministry of energy and minerals has tasked you to help them model equation(s) that can estimate the amount of crude oil in a reservoir. The governmen

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.

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