There are many ways to locate data and instructions in primary memory and these methods are known as Memory Address Modes.
There are essentially 4 types of Memory Addressing modes:
- Immediate
- Direct
- Indirect
- Indexed
- Implied
- Register Direct
- Register Indirect
- Relative
- Base
- Auto-increment
- Auto-decrement
The operand is contained in a register set. The address field of the instruction refers to a CPU register that contains the operand. No reference to memory is required to fetch the operand.
->In this addressing mode,The address field of the instruction refers to a CPU register that contains the effective address of the operand. Only one reference to memory is required to fetch the operand.
->In this addressing mode,Effective address of the operand is obtained by adding the content of program counter with the address part of the instruction.
->In this addressing mode,Effective address of the operand is obtained by adding the content of program counter with the address part of the instruction.
->In this addressing mode,After accessing the operand, the content of the register is automatically incremented by step size ‘d’. Step size ‘d’ depends on the size of operand accessed. Only one reference to memory is required to fetch the operand.
->In this addressing mode,First, the content of the register is decremented by step size ‘d’. Step size ‘d’ depends on the size of operand accessed. After decrementing, the operand is read. Only one reference to memory is required to fetch the operand.