Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

What is the role of IMC in corporate communication?

Answered: 1 week ago