日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

微擎pc 导入前缀_段覆盖前缀| 8086微处理器

發(fā)布時間:2025/3/11 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 微擎pc 导入前缀_段覆盖前缀| 8086微处理器 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

微擎pc 導(dǎo)入前綴

As we already know that the effective address is calculated by appending the segment registers value and adding up the value of the respective offset. But what if we want to choose some other offset than the assigned one.

眾所周知,有效地址是通過將段寄存器的值加上相應(yīng)偏移量的值相加得出的。 但是,如果我們要選擇分配的偏移量以外的其他偏移量,該怎么辦。

This freedom is provided to us in 8086 microprocessor through the concept of Segment override prefix.

通過段覆蓋前綴的概念在8086微處理器中為我們提供了這種自由。

The Segment Override Prefix says that if we want to use some other segment register than the default segment for a particular code, then it is possible. It can simply be one by mentioning the segment that is to be used before the address location or the offset register containing that address. By doing so, the machine, i.e. the 8086 microprocessor, while calculating the effective address will consider the mentioned segment for calculating the effective address rather than opting for the default one.

段覆蓋前綴說,如果我們要為特定代碼使用默認(rèn)段以外的其他段寄存器,則可以。 只需提及要在地址位置或包含該地址的偏移寄存器之前使用的段,就可以成為一個。 這樣,機(jī)器(即8086微處理器)在計算有效地址時將考慮上述段,以計算有效地址,而不是選擇默認(rèn)地址。

The syntax of doing so, as mentioned earlier is by mentioning the segment just before the address location and proceeded by a colon. The following abbreviations for each segment register are used for this purpose:

如前所述,這樣做的語法是在地址位置之前并以冒號開頭的段。 每個段寄存器的以下縮寫用于此目的:

  • Stack Segment Register - SS

    堆棧段寄存器-SS

  • Data Segment Register - DS

    數(shù)據(jù)段寄存器-DS

  • Code Segment Register - CS

    代碼段寄存器-CS

  • Extra Segment Register - ES

    額外的段寄存器-ES

Let us take the following examples to further understand this concept:

讓我們通過以下示例進(jìn)一步了解這個概念:

MOV AX , [BX]

This is a normal instruction without any segment overriding. Hence the effective address will be calculated by using the default segment itself. Therefore, the effective address for the above-mentioned instruction:

這是一條正常的指令,沒有任何段覆蓋。 因此,有效地址將通過使用默認(rèn)段本身來計算。 因此,上述指令的有效地址為:

Effective address = DS X 10H + content of BX register

有效地址= DS X 10H + BX寄存器的內(nèi)容

MOV AX, SS : [BX]

Here, in this case, the Stack segment register is used as a prefix for the offset BX. So, instead of DS, which is the default segment register for BX, the SS will be used for finding the effective address location. Therefore, the effective address in the above-mentioned equation will be:

在這種情況下,堆棧段寄存器用作偏移量BX的前綴。 因此,將使用SS代替BX的默認(rèn)段寄存器DS來查找有效地址位置。 因此,上述公式中的有效地址為:

Effective address = SS X 10H + content of BX register

有效地址= SS X 10H + BX寄存器的內(nèi)容

MOV BX, SS:[1002H]

Here, in this case, the address from where the data is to be fetched is directly mentioned in the instruction. By default, such cases take the Data Segment (DS) as its offset. But as the SS is the mentioned register in the given instruction, then it will be used here. Therefore, the effective address for the given instruction is:

在這種情況下,在指令中直接提到要從中提取數(shù)據(jù)的地址。 默認(rèn)情況下,此類情況將數(shù)據(jù)段( DS )作為其偏移量。 但是由于SS是給定指令中提到的寄存器,因此將在此處使用它。 因此,給定指令的有效地址為:

Effective Address = SS X 10H + 1002H

翻譯自: https://www.includehelp.com/embedded-system/segment-override-prefix-8086-microprocessor.aspx

微擎pc 導(dǎo)入前綴

總結(jié)

以上是生活随笔為你收集整理的微擎pc 导入前缀_段覆盖前缀| 8086微处理器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。