Addressing Modes
Addressing Modes
Label (optional)
Instruction (required)
Operands (instruction specific)
Comment (optional)
Mov ax, bx
Machine code : may be one , two , three or four bytes in length. The
first byte is actual operation called an opcode ( is short for 'Operation
Code') that tells the processor what should be done, and any other bytes
that present are operand refrenced an immediate value , a register , or a
memory location.
Types of Addressing Modes:
In the above example, 8705 h is the immediate data. The immediate data
may be 8-bit or 16-bit in size.
Example: ADD BL , AL
MOV SI , CX
[BX+SI+displacement] or [BX+DI+displacement] or
[BP+SI+displacement] or [BP+DI+displacement].
Note. Only the registers (BX, SI, DI, BP) can be used inside square
brackets (as memory pointers).