Addressing Modes
Addressing Modes
Microprocess Addressing
or Modes
A way locating data locating data or operands
Every instruction of a program has to operate on a data.
The different ways in which a source operand is denoted in an instruction are known as addressing modes.
1. Immediate Addressing
2. Direct Addressing
3. Indirect Addressing
4. Register Addressing
5. Register Indirect Addressing
6. Indexed Addressing
7. Based Addressing
8. Based Index Addressing
9. Based Index with displacement Addressing
1. Register Addressing
The data is stored in a register and it is referred using the
particular register (except IP)
5. Indexed Addressing
OFFSET of the operand is stored in one of the index registers.
DS is the default segment for index registers SI or DI
In case of string instructions DS or ES are default.
MOV AX,[SI]
Here data AVAILABLE ON offset address stored in SI in DS. The effective address is 10H*DS+[SI]
The operand offset is computed by adding the base register contents of Index register and 8 or 16 bit
displacement
MOV AX, [BX+DI+08]
ADD CX, [BX+SI+16]
In the above example, 0005H is the immediate data. The immediate data may be 8 bit or 16 bit size.
1. Register
Addressing
2. Immediate
Addressing In this addressing mode, the effective address
a
of program instruction is specified relative to
3.
4. Direct Addressing
Register Indirect Addressing Instruction Pointer (IP) by an 8-bit
displacement. signed
5. Based Addressing
Example: JZ 0AH
6. Indexed Addressing
2. Immediate
Addressing
3.
4. Direct Addressing
Register Indirect Addressing
5. Based Addressing
6. Indexed Addressing
Instructions using this mode have no operands.
7. Based Index Addressing
The instruction itself will specify the data to be
operated by the instruction.
8. String Addressing
Example: CLC
9. Direct I/O port Addressing
This clears the carry flag to
10. Indirect I/O port Addressing zero.