The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+5 votes
238 views

"The Address Part of the Index Addressing mode Instruction must  set to zero,to behave like Register Indirect Mode Instruction"
IS IT A VALID STATEMENT ?

asked in CO and Architecture by Loyal (8.4k points)
edited by | 238 views
0
  1. Index mode X(Ri)   EA=[Ri]+X
  2. Register indirect  Ri  EA=[Ri]  no they are not valid if you put index zero then i think valid

1 Answer

+4 votes

Yes, it is a valid statement, if Indexed address holds 0 in place of the base address and then this 0 is added with index register value then it acts similarly as if we are having register address in the instruction.

EA in Indexed Mode = M[base address from Instruction + Index register displacement] => M[0 + index register] => M[index register] (here base address is in instruction and Index register keeps displacement value which keep chnaging)

(Now here the displacement if got added to a base != 0(but some memory address) then it gives a address, also displacement if got added to base =0 is again address ) 

EA in Register Indirect = M[value in register] (Here register address is in Instruction)

answered by (139 points)
edited by

Related questions

+1 vote
1 answer
5
asked May 27, 2018 in CO and Architecture by Prateek Raghuvanshi Boss (10.1k points) | 176 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,808 questions
54,481 answers
188,251 comments
74,529 users