Addressing Mode
Addressing Mode
ADD AX,BX
MOV AL,BL
3) Direct Addressing Mode: When operand is a variable. Or, we can say that
the effective address the operand is directly present in instruction.
Register to store the offset address can be BX, SI, DI, BP.
5) Based Addressing Mode: In this addressing mode, the offset address of the
operand is given by the sum of contents of the BX/BP registers and 8-bit/16-
bit displacement.
MOV DX, [BX+04]
ADD CL, [BP+08]
6) Indexed Addressing Mode: In this addressing mode, the offset address of the
operand is given by the sum of contents of the SI/DI registers and 8-bit/16-bit
displacement.
7) Based Indexed Addressing Mode: In this mode offset address of the operand
is the sum of
1) Content of the base register.
2) Content of the index register,
3) Optionally, offset address of a variable.
4) Optionally, a constant.