逻辑地址物理地址计算

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
计算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 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)计算以下寄存器的有效地址:
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用作偏移量时计算出的地址给出了堆栈的起始地址。 将SP用作偏移量时的地址表示堆栈顶部所在的存储位置。

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寄存器包含一个等于3032H的16位值。 0008H已添加到BX。
添加BX,0008H
寄存器AX包含一些需要存储在以下位置的值:
MOV [BX],AX
计算将存储AX值的地址。

Ans:

答:

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

执行完第一条指令后,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寄存器是数据段(DS)寄存器的偏移量。 因此,将按以下方式计算AX寄存器的值的存储位置:

    (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
您可以根据DS寄存器计算存储位置的有效地址吗?

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寄存器的偏移量,因此无法根据给定的值计算DS寄存器的有效地址。 仅在段覆盖前缀的情况下才可以执行此操作,但是由于此处未提及,因此我们将不遵循。

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

逻辑地址物理地址计算

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

  1. 微内核和宏内核的区别_8086微处理器中的过程和宏之间的区别

    微内核和宏内核的区别 Prerequisite 先决条件 Procedure in 8086 Microprocessor 8086微处理器中的过程 Macros in 8086 Microproce ...

  2. call和ret指令_8086微处理器中的CALL和RET指令

    call和ret指令 8086微处理器中的CALL指令 (The CALL instruction in the 8086 microprocessor) The CALL instruction i ...

  3. 通用apdu指令_8086微处理器中的通用指令格式

    通用apdu指令 Introduction: 介绍: In this article, we are going to discuss about the 6 general formats of i ...

  4. 递归转化成非递归过程_8086微处理器中的递归和重入过程

    递归转化成非递归过程 As we all know that a procedure is a set of instruction written separately which can be u ...

  5. 高中物理应用计算机教学心得,高中物理个人教学总结(通用3篇)

    高中物理个人教学总结(通用3篇) 时间象奔腾澎湃的急湍,它一去无返,毫不流连,经过这段时间努力,我们也有了一定的收获,让我们好好捋捋,写一份教学总结吧.但是教学总结要写什么内容才能让人眼前一亮呢?下面 ...

  6. 高中物理应用计算机教学心得,高中物理个人教学工作总结范文精选

    作为一名高中物理教师应该对自己的工作做好相应的计划,提高教学的水平.下面就是小编给大家带来的高中物理个人教学工作总结范文精选,希望能帮助到大家! 高中物理个人教学工作总结范文精选一 本学期的高一物理教 ...

  7. 虚拟化中的物理网路介绍

    虚拟化中的物理网路介绍 网络基础概念: 电脑上网必须存在地址: IP地址/子网掩码/网关{上网必须配置IP地址和网关} MAC地址(物理地址){网卡自带的MAC,无需我们配置} 广播和单播: 路由: ...

  8. unity 角度限制_喵的Unity游戏开发之路 推球:游戏中的物理

    前言很多童鞋没有系统的Unity3D游戏开发基础,也不知道从何开始学.为此我们精选了一套国外优秀的Unity3D游戏开发教程,翻译整理后放送给大家,教您从零开始一步一步掌握Unity3D游戏开发. 本 ...

  9. 游戏中基于物理的渲染简简明科普

    http://tieba.baidu.com/p/3922888163 基于物理的渲染(PBR)是一个近几年时常见诸于各大游戏行业技术交流.游戏开发商公关以及游戏媒体口中的词汇.这个词涵盖内容广泛,定 ...

最新文章

  1. SSM项目的数据库密码加密方案
  2. python画饼图-python使用Matplotlib画饼图
  3. 组合模式_[设计模式]10.组合模式
  4. 为何有些程序员总是想要“干掉”产品经理?
  5. spring的延迟初始化bean (default-lazy-init 与 lazy-init )
  6. Matplotlib 入门(详看注释)
  7. SylixOS armv8 任务切换
  8. zoj 1100 - Mondriaan#39;s Dream
  9. IDEA怎么设置背景图片
  10. 计算机专业数学建模结课论文,大学生数学建模论文范文
  11. 通过Windows的bat方式一键给计算机网卡替换IP地址
  12. matlab:夫琅禾费衍射简单仿真
  13. AFL++: Combining Incremental Steps of Fuzzing Research
  14. chrome 本地文件 翻译工具
  15. 《量化投资策略如何现额益简及PDF电子书下载
  16. 提升代码覆盖率的经验
  17. Makefile文件是什么
  18. gdal geometry java_GDAL Geometry对象操作 - 创建对象
  19. 学计算机颈椎痛,每天对着电脑颈椎很疼怎么办
  20. 我的2019秋招记忆(完整版) | 掘金技术征文

热门文章

  1. 2016 年终工作总结
  2. 面向对象(二)构造函数,this,static,类的成员,对象初始化顺序
  3. 算法小抄6-二分查找
  4. 30岁学android开发
  5. 点云拼接-将局部扫描设备拼接到完整点云地图
  6. AVProVideo的使用以及遇到的问题
  7. 查找数组中的所有重复项
  8. 华为、小米、OPPO、VIVO联手打造“GDSA”对抗谷歌
  9. Java--使用httpClient模拟登陆正方教务系统获取课表
  10. osgEarth显示地球影像