in CO and Architecture retagged by
501 views
2 votes
2 votes
Could you please explain How we can implement indirect addressing mode using Index addressing mode.. and vice versa..??
in CO and Architecture retagged by
by
501 views

1 comment

Very similar to using pointer for array access and vice versa. Can you give a try?
2
2

1 Answer

0 votes
0 votes
Direct Index addressing mode – X(R1). Here Effective address of the operand, EA = X + [R1], where [Y] is the content of location Y.

Indirect Index addressing mode – (X(R1)). Here EA = [X + [R1]].

Source: Carl Hamacher, Figure 7.20.

2 Comments

That’s not directly answering the given question right?
0
0
when the question said, “implement indirect addressing mode using Index addressing mode.. and vice versa..”  I got a bit confused because there is no addressing mode called indirect. But every addressing mode has a direct and an indirect version to it.

like,

direct register addressing mode, EA = R, where R is a register.

indirect register addressing mode EA = [R]

direct absolute mode, EA = LOC, where LOC is a memory location.

indirect absolute mode, EA = [LOC]

So, I just wrote direct and indirect versions of the index addressing mode, where the direct index addressing mode uses the indirect register mode.
0
0

Related questions

0 votes
0 votes
1 answer
1
lea asked in CO and Architecture Jun 12, 2023
298 views
lea asked in CO and Architecture Jun 12, 2023
by lea
298 views