What addressing mode is used in "mov cx, [bp+6]"? The processor is intel 8086. I am studying "Microprocessor and Interfacing" by Douglas V. Hall. I know its memory addressing mode. But not sure whether its based addressing mode or index addressing mode?
[bp+6]
is the based addressing mode. From the original 8086 docs:
In based addressing, the effective address is the sum of a displacement value and the content of register BX or register BP.
Indexed addressing mode is similar but with the SI
or DI
registers.
Basically, you have the following modes:
[1234]
.[bx]
.4[bx]
or [bp+8]
.4[si]
or [di+4]
.4[bx][si]
or [bx+si+4]
.