What addressing mode is used in 'mov cx, [bp+6]'?

霸气de小男生 提交于 2019-12-02 08:32:00

问题


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?


回答1:


[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:

  • 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.


来源:https://stackoverflow.com/questions/13928834/what-addressing-mode-is-used-in-mov-cx-bp6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!