written 6.0 years ago by | • modified 5.7 years ago |
- MOV AX,1000
- MOV AX,[1000]
- MOV AX,BX
- MOV[BX],AX
- MOV AX,[SI + 200]
written 6.0 years ago by | • modified 5.7 years ago |
written 5.7 years ago by |
1. MOV AX,1000
It uses immediate addressing mode.
The value 1000 immediately copied in AX.
2. MOV AX,[1000]
It uses direct addressing mode.
The data bytes from memory location [1001]:[1000] will be copied in (AH):(AL) registers.
3. MOV AX,BX
It uses register addressing mode.
The 16 bit data word from register (BX) will be copied into (AX)
4. MOV[BX],AX
It uses register indirect addressing.
The 16 bit data word from register (AX) will be copied in successive two memory locations which are indirectly addressed by
[BX] $\leftarrow$(AL)
[BX + 1 ] $\leftarrow$ (AH)
5. MOV AX,[SI + 200]
It uses register relative addressing.
It copies 16 bit data word from successive two memory locations into AX as follow
(AL) $\leftarrow$ [SI + 200]
(AH) $\leftarrow$ [SI + 200 ] + 1