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

Set up a scatter diagram for speed, A research analyst for an oil company w...

A research analyst for an oil company wants to develop a model to predict miles per gallon based on highway speed. An experiment is designed in which a test car is driven at speeds

Inverse z transform, after solving the difference equation using z transfor...

after solving the difference equation using z transform, how to find the inverse z transform for the answer

A high school counselor, A high school counselor needs to specify whether t...

A high school counselor needs to specify whether the teenage pregnancy rate at her school is disimilar from the rate nationwide. She knows that the rate nationwide is 15 %. She ran

Strength of materials, a wire of 3mm diameter and 5 m long has a load of 10...

a wire of 3mm diameter and 5 m long has a load of 100g suddenly applied to its ends. calculate stress and extension produced. also show that these are twice the static values

Draw concentric circles, Draw concentric circles of radii a and b, each cen...

Draw concentric circles of radii a and b, each centered at z=id (on the imaginary axis). Suppose φ(x,y) is a harmonic function inside the washer defined by these circles. The circl

Compute the linear arc distance, Question Assume the earth is a sphere ...

Question Assume the earth is a sphere with a radius of 6,371,000.000 meters. Three points are defined by their latitude and longitude. Point Latitude (N) Longitude (W) A

All.., Ask question #Minimum 100thank you words accepted#

Ask question #Minimum 100thank you words accepted#

MUPAD, I have some work in Mupad i need doing. Its on Diff equations. Canb ...

I have some work in Mupad i need doing. Its on Diff equations. Canb you guys help?

Chemistry, advantages of langmuir adsorption theory

advantages of langmuir adsorption theory

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