This pessage is based on the book namedThe x86 PC Assembly Language,Design,and Interfacing Fifth edition
and make a summary to make better understand.
CPU addressing modes:
the way CPU access operands(data) called addressing mode
There are seven kind of distinct addressing mode.
- register
- immediate
- direct
- register indirect
- based relative
- indexed relative
- based indexed relative
Register addressing mode:
use register to hold the data
Examples are below:
MOV BX,DX
MOV ES,AX
Pay attention to the size of the registers,the different size of two register will cause a error!(like this)
ADD CL,AX;
Immediate addressing mode:
Source o