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

歡迎訪問 生活随笔!

生活随笔

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

编程问答

逻辑地址物理地址计算_8086微处理器中的物理地址计算问题

發(fā)布時(shí)間:2023/12/29 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 逻辑地址物理地址计算_8086微处理器中的物理地址计算问题 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

邏輯地址物理地址計(jì)算

Q1) The value of Code Segment (CS) Register is 4042H and the value of different offsets is as follows:
BX: 2025H , IP: 0580H , DI: 4247H
Calculate the effective address of the memory location pointed by the CS register.

Q1)代碼段(CS)寄存器的值為4042H,不同偏移量的值如下:
BX:2025H,IP:0580H,DI:4247H
計(jì)算CS寄存器指向的存儲(chǔ)器位置的有效地址。

Ans:

答:

The offset of the CS Register is the IP register.

CS寄存器的偏移量是IP寄存器。

Therefore, the effective address of the memory location pointed by the CS register is calculated as follows:

因此,CS寄存器所指向的存儲(chǔ)位置的有效地址的計(jì)算如下:

Effective address= Base address of CS register X 10H + Address of IP

有效地址= CS寄存器的基地址X 10 H + IP地址

= 4042H X 10H + 0580H= (40420 + 0580)H= 41000H

Q2) Calculate the effective address for the following register:
SS: 3864H, SP: 1735H, BP: 4826H

Q2)計(jì)算以下寄存器的有效地址:
SS:3864H,SP:1735H,BP:4826H

Ans:

答:

Both SP and BP are the offsets for Stack Register (SS). The address calculated when BP is taken as the offset gives the starting address of the stack. The address when SP is taken as the offset denotes the memory location where the top of the stack lies.

SP和BP都是堆棧寄存器(SS)的偏移量。 將BP用作偏移量時(shí)計(jì)算出的地址給出了堆棧的起始地址。 將SP用作偏移量時(shí)的地址表示堆棧頂部所在的存儲(chǔ)位置。

Therefore, the effective address for both these cases is:

因此,這兩種情況的有效地址是:

(SS X 10H) + SP = 3640H X 10H + 1735H= 36400H + 1735H= 38135H(SS X 10H) + BP = 3640H X 10H + 4826H= 36400H + 4826H= 41226H

Q3) The value of the DS register is 3032H. And the BX register contains a 16 bit value which is equal to 3032H. 0008H is added to BX.
ADD BX, 0008H
The register AX contains some value which needs to be stored at a location as follows:
MOV [BX], AX
Calculate the address at which the value of the AX will be stored.

Q3) DS寄存器的值為3032H。 BX寄存器包含一個(gè)等于3032H的16位值。 0008H已添加到BX。
添加BX,0008H
寄存器AX包含一些需要存儲(chǔ)在以下位置的值:
MOV [BX],AX
計(jì)算將存儲(chǔ)AX值的地址。

Ans:

答:

After executing the first instruction, the value of BX Register is as follows:
BX = 3040H

執(zhí)行完第一條指令后,BX寄存器的值如下:
BX = 3040H

The BX register is an offset of the Data Segment (DS) register. So, the location at which the value of the AX register will be stored is calculated as follows:

BX寄存器是數(shù)據(jù)段(DS)寄存器的偏移量。 因此,將按以下方式計(jì)算AX寄存器的值的存儲(chǔ)位置:

(DS X 10H) + BX = 3032H X 10H +3040H= 30320H + 3040H= 33360H

Q4) You are provided the following values:
DS: 3056H, IP: 1023H, BP: 2322H and SP: 3029H
Can you calculate the effective address of the memory location as per the DS register?

Q4)為您提供以下值:
DS:3056H,IP:1023H,BP:2322H和SP:3029H
您可以根據(jù)DS寄存器計(jì)算存儲(chǔ)位置的有效地址嗎?

Ans:

答:

No, the effective address of the DS register cannot be calculated from the given values because none of the given offset is an offset of the DS Register. This can be done only in the case of segment override prefix, but as it is not mentioned here, we will not follow that.

不,由于給定的偏移量都不是DS寄存器的偏移量,因此無法根據(jù)給定的值計(jì)算DS寄存器的有效地址。 僅在段覆蓋前綴的情況下才可以執(zhí)行此操作,但是由于此處未提及,因此我們將不遵循。

翻譯自: https://www.includehelp.com/embedded-system/problems-on-physical-address-calculation-in-8086-microprocessor.aspx

邏輯地址物理地址計(jì)算

總結(jié)

以上是生活随笔為你收集整理的逻辑地址物理地址计算_8086微处理器中的物理地址计算问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

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