Question: List the steps needed to execute the machine instruction ADD LOCATION, R2 In terms of transfer between the components shown in given figure and some

List the steps needed to execute the machine instruction

ADD LOCATION, R2

In terms of transfer between the components shown in given figure and some simple commands

Assume that the instruction itself is stored in the memory at location (LOC) and that this address is initially in register PC. The first two steps might be expressed as:

Transfer the contents of register PC to register MAR

Issue a read command to the memory and then wait until it has transferred the requested word into register MDR.

Remember to include the steps needed to update the content of PC from LOC to LOC + 1 so that next instruction can be fetched.

Question 2: The memory locations 1000, 1001 and 1020 have data values third digit, fifth digit and last digit of your mobile number respectively before the following operations are executed.

For example: your mobile number 9415607273 then M [1000] = 1, M [1001] =6 and M [1020] = 3

Operation 1: read the value at 1000,

Operation 2: perform the addition with the value of 1001

Operation 3: subtract the resultant from 1020

Operation 4: store the final result at 1030

Note: Consider your registered mobile number and clearly mention in solution.

Write the assembly code for the given operations

Find the data values at 1000,1001, 1020 after execution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!