物理地址的计算步骤
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
register for计算CS寄存器指向的存储器位置的有效地址。
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寄存器所指向的存储位置的有效地址的计算如下:
Effective address= Base address of CS register x 10H+Address of IP
有效地址=CS寄存器的基地址X 10日+IP地址
= 4042H X 10H + 6586H
=(40420 + 6588)H
= 41808H
Q2)Calculate the effective address for the following register:Ans:3864H,SP: 1735H, BP: 4826H
Q2)计算以下寄存器的有效地址:
Ans: 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用作偏移量时计算出的地址给出了堆栈的起始地址。将SP用作偏移量时的地址表示堆栈顶部所在的存储位置。
Therefore, the effective address for both these cases is:
因此,这两种情况的有效地址是:
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论