2 votes 2 votes Could you please explain How we can implement indirect addressing mode using Index addressing mode.. and vice versa..?? CO and Architecture co-and-architecture addressing-modes + – Subbu. asked Jul 14, 2022 • retagged Jul 15, 2022 by Shubham Sharma 2 Subbu. 512 views answer comment Share Follow See 1 comment See all 1 1 comment reply Arjun commented Jul 14, 2022 reply Follow Share Very similar to using pointer for array access and vice versa. Can you give a try? 2 votes 2 votes Please log in or register to add a comment.
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. lolalo answered Jul 22, 2022 lolalo comment Share Follow See all 2 Comments See all 2 2 Comments reply Arjun commented Aug 11, 2022 reply Follow Share That’s not directly answering the given question right? 0 votes 0 votes lolalo commented Aug 11, 2022 reply Follow Share 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 votes 0 votes Please log in or register to add a comment.