Addressing Modes Refer To The Different Methods of Addressing The Operands
Addressing Modes Refer To The Different Methods of Addressing The Operands
Addressing modes
of 8086 are as follows:
In this mode, the operand is specified in the instruction itself. Instructions are longer but
the operands are easily identified.
Example:
In this mode, operands are specified using registers. This addressing mode is normally
preferred because the instructions are compact and fastest executing of all instruction
forms.
Example:
MOV AX, BX
In this mode, address of the operand is directly specified in the instruction. Here only the
offset address is specified, the segment being indicated by the instruction.
Example:
This instruction moves data from location 4321H in the data segment into CL.
DS * 10H + 4321
Assume DS = 5000H
In this mode, the effective address of the memory may be taken directly from one of the
base register or index register specified by instruction. If register is SI, DI and BX then
DS is by default segment register.
Example:
This instruction moves a word from the address pointed by BX and BX + 1 in data
segment into CL and CH respectively.
In this mode, the operand address is calculated using one of the base registers and an 8 bit
or a 16 bit displacement.
Example:
This instruction moves a byte from the address pointed by BX + 4 in data segment to CL.
Example:
This instruction moves a byte from the address pointed by BX + SI in data segment to
CL.
CL ← DS: [BX + SI]
In this mode, the address of the operand is calculated as the sum of base register, index
register and 8 bit or 16 bit displacement.
Example:
This instruction moves a byte from the address pointed by BX + DI + 20H in data
segment to CL.
In this mode, the operands are implied and are hence not specified in the instruction.
Example:
STC