Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider a processor in which a two-word instruction is stored at location 100 w

ID: 3645511 • Letter: C

Question

Consider a processor in which a two-word instruction is stored at location 100 with its address field at location 101 as shown below.


The first word of the instruction specifies the operation code and mode; the second word specifies the address part.


The values of the program counter (PC register), a general register (R1), the index register (XR), the base register (BR), and certain addresses in memory are as shown below.



Evaluate the effective address and the value that is loaded into the AC for the following addressing modes:



The first word of the instruction specifies the operation code and mode; the second word specifies the address part. The values of the program counter (PC register), a general register (R1), the index register (XR), the base register (BR), and certain addresses in memory are as shown below. Evaluate the effective address and the value that is loaded into the AC for the following addressing modes:

Explanation / Answer

a)Immediate :-effective address = PC+1=100+1=101 , value of operand loaded into AC= 600 b) Direct :-effective address= PC+1=100+1=[101]=here by[] i meant to say the contents of 101 address which is =600 value of operand loaded into AC= 400 c)Indirect :-effective address= PC+1=100+1=[[101]] here by[] i meant to say the contents of the address which is=400 value of operand loaded into AC= 200 d)Register:-effective address= R1=300 value of operand loaded into AC= 300 e)Register indirect :-effective address= [R1]=[300] value of operand loaded into AC= 700 f)Relative address :-effective address=100+2+[100+1]=102+600=702 value of operand loaded into AC= 500 g) Base register:-effective address=300 value of operand loaded into AC= 700 h)Indexed:-effective address=200+[100+1]=200+600=800 value of operand loaded into AC= 900

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote