8086 尋址方式
Introduction:
介紹:
Addressing mode tells us what is the type of the operand and the way they are accessed from the memory for execution of an instruction and how to fetch particular instruction from the memory. There are mainly 8 addressing modes of an 8086 microprocessor. Let’s discuss them in brief:
尋址模式告訴我們什么類型的操作數,以及如何從內存中訪問操作數以執行指令,以及如何從內存中提取特定的指令。 8086微處理器主要有8種尋址模式。 讓我們簡單地討論一下:
1) Immediate Addressing Mode
1)立即尋址模式
In this immediate data is the part of the instruction itself.
在該立即數中,數據是指令本身的一部分。
Example: Mov Ax, 0005H
例如: Mov Ax,0005H
2) Absolute/ Direct Addressing Mode
2)絕對/直接尋址模式
In it, a 16-bit memory address (offset) or an input/ output address is directly specified in the instruction as a part of it.
其中,在指令中直接指定16位存儲器地址(偏移量)或輸入/輸出地址作為其一部分。
3) Register Addressing Mode
3)寄存器尋址模式
Here data is stored in a registered and referred using the particular register.
此處,數據存儲在一個寄存器中,并使用特定的寄存器進行引用。
4) Register Indirect Addressing Mode
4)寄存器間接尋址模式
In this offset address of data is in either Bx, SI, DI, (Base register, source index or Destination index) default segment is either DS or ES.
在此偏移地址中,數據的地址位于Bx,SI,DI(基址寄存器,源索引或目標索引)中,默認段為DS或ES。
Data is supposed to be available at the address pointed to by the content of any of the above registers in the default data segment.
假定數據在默認數據段中上述任何寄存器的內容所指向的地址處可用。

5) Indexed Addressing Mode
5)索引尋址模式
Here offset of the operand is stored in one of the index registers. DS is the default segment for SI and DI in string instruction DS and ES default segment for register SI and DI.
這里操作數的偏移量存儲在索引寄存器之一中。 DS是字符串指令DS中SI和DI的默認段,而ES是寄存器SI和DI中的默認段。
6) Register Relative Addressing Mode
6)寄存器相對尋址模式
In it, data is available at an effective address formed by adding an 8 bit or 16-bit displacement with content, any one of the registers Bx, Bp, SI, DI in the default (DS or ES) segment.
在其中,通過在內容(默認(DS或ES)段中的寄存器Bx,Bp,SI,DI中的任何一個)中添加內容的8位或16位位移形成的有效地址處的數據可用。
7) Based Indexed Addressing Mode
7)基于索引的尋址模式
The effective address of data is formed by adding content of base register Bx or Bp to the content of index register.
數據的有效地址是通過將基址寄存器Bx或Bp的內容添加到索引寄存器的內容而形成的。

8) Relative Based Indexed Addressing Mode
8)基于相對索引的尋址方式
Here the effective address is formed by adding an 8 bit or 16-bit displacement with the sum of the content of any one of the index registers in the default segment.
此處,有效地址是通過將8位或16位位移與默認段中任何索引寄存器的內容之和相加而形成的。

Conclusion:
結論:
In this article, we have discussed the different addressing modes, in brief, will discuss more microprocessors and computer architecture in my upcoming articles. Will see you in my next article till then stay healthy and keep learning!
在本文中,我們討論了不同的尋址模式 ,簡而言之,在我的后續文章中將討論更多的微處理器和計算機體系結構。 在我的下一篇文章中將看到您,直到您保持健康并繼續學習為止!
翻譯自: https://www.includehelp.com/embedded-system/different-addressing-modes-of-8086-microprocessor.aspx
8086 尋址方式