Addressing
1. Immediately addressing
Directly to the register assignment
MOV AH, 80H
2. The register addressing
There is a source or destination register
2.1) the source operand is a register addressing
如: ADD VARD, EAX ADD VARW, AX MOV VARB, BH 等.
Wherein: VARD, VARW and VARB double word, word and byte type memory variable.
2.2) the destination operand is a register addressing
Such as: ADD BH, 78h ADD AX, 1234h MOV EBX, 12345678H like.
2.3) source and destination operands are register addressing
Such as: MOV EAX, EBX MOV AX, BX MOV DH, BL like.
3. Direct addressing
Address value in brackets
MOV BX, [1234H] (default DS)
MOV ES: [1000], AX
4. register indirect addressing mode
Register in brackets
MOV BX, [DI]
Effective address of the operand in one SI, DI, BX and BP to specify the four registers, said addressing of this register indirect addressing mode.
If the effective address with SI, DI, and BX is specified, then the default segment register as DS;
If the effective address designated by BP, it is the default segment register SS (ie: the stack segment).
The relative addressing mode register
A register and an immediate number in parentheses, and also to calculate
MOV BX, [SI+100H]
6. The base-plus-indexed addressing mode
Two registers in brackets, and to calculate
MOV BX, [BX + SI]
7. opposite base-plus-indexed addressing mode
Two registers in parenthesis immediately and a number in parentheses, and to calculate
MOV Ax, [bx + SI + 200H]
common problem