An instruction is stored at location 300 with its address field at loc...
Explanation:
Addressing modes refer to the way in which the operand of an instruction is specified. In this question, we are given an instruction stored at location 300 with its address field at location 301. The address field has the value 400. A processor register R1 contains the number 200. We need to determine the addressing mode of the effective address of the instruction is 702.
Addressing modes:
1. Indexed addressing mode: In indexed addressing mode, the operand is obtained by adding the contents of a register to the address field of the instruction. However, in this question, we are not given any register to be added to the address field. Hence, option A is incorrect.
2. Indirect addressing mode: In indirect addressing mode, the operand is obtained by using the value in the address field as a pointer to the actual operand. However, in this question, the address field contains the actual address of the operand. Hence, option B is incorrect.
3. Relative addressing mode: In relative addressing mode, the operand is obtained by adding the value in the address field to the current value of the program counter (PC). However, in this question, we are not given the value of the PC. Hence, option D is incorrect.
4. Register indirect addressing mode: In register indirect addressing mode, the operand is obtained by using the value in a register as a pointer to the actual operand. In this question, register R1 contains the value 200. Hence, the effective address of the instruction is obtained by adding the value in register R1 to the value in the address field.
Effective address = 400 + 200 = 600
However, the effective address of the instruction given in the question is 702. Hence, the addressing mode of the instruction cannot be register indirect.
5. Relative indexed addressing mode: In relative indexed addressing mode, the operand is obtained by adding the value in the address field to the current value of the program counter (PC) and the contents of a register. In this question, we are not given the value of the PC. However, if we assume that the PC contains the value 102, then the effective address of the instruction would be:
Effective address = 400 + 200 + 102 = 702
Hence, the addressing mode of the instruction is relative indexed.