'mov cx,[bp + 6]'中使用什么寻址模式? [英] What addressing mode is used in 'mov cx, [bp+6]'?
问题描述
mov cx,[bp + 6]中使用哪种寻址模式?处理器是Intel8086。我正在研究Douglas V. Hall撰写的微处理器和接口。我知道它的内存寻址模式。但是不确定是基于其的寻址模式还是基于索引的寻址模式?
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]
是基于地址的模式。来自原始的8086文档:
[bp+6]
is the based addressing mode. From the original 8086 docs:
在基于地址的寻址中,有效地址是位移值与寄存器BX或寄存器内容的总和BP。
In based addressing, the effective address is the sum of a displacement value and the content of register BX or register BP.
索引寻址模式与之相似,但具有 SI
或 DI
寄存器。
Indexed addressing mode is similar but with the SI
or DI
registers.
基本上,您有以下几种模式:
Basically, you have the following modes:
- 直接内存访问,如
[1234]
。 - 像
一样注册间接访问[bx]
。 - 基于地址的地址,例如
4 [bx]
或[ bp + 8]
。 - 索引地址,例如
4 [si]
或[di + 4]
。 - 基于索引的寻址(前两个的组合),例如
4 [bx] [si]
或[bx + si + 4]
。 - 在这种情况下,其他一些无关紧要的东西,例如隐式,端口,字符串,相对。
- Direct memory accessing like
[1234]
. - Register indirect like
[bx]
. - Based addressing like
4[bx]
or[bp+8]
. - Indexed addressing like
4[si]
or[di+4]
. - Based indexed addressing (combo of the previous two) such as
4[bx][si]
or[bx+si+4]
. - Some other inconsequential (in this context) ones like implicit, port, string, relative.
这篇关于'mov cx,[bp + 6]'中使用什么寻址模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!