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

微擎pc 导入前缀

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.

众所周知,有效地址是通过将段寄存器的值加上相应偏移量的值相加得出的。 但是,如果我们要选择分配的偏移量以外的其他偏移量,该怎么办。

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.

段覆盖前缀说,如果我们要为特定代码使用默认段以外的其他段寄存器,则可以。 只需提及要在地址位置或包含该地址的偏移寄存器之前使用的段,就可以成为一个。 这样,机器(即8086微处理器)在计算有效地址时将考虑上述段,以计算有效地址,而不是选择默认地址。

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

    数据段寄存器-DS

  • Code Segment Register - CS

    代码段寄存器-CS

  • Extra Segment Register - ES

    额外的段寄存器-ES

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

让我们通过以下示例进一步了解这个概念:

    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:

这是一条正常的指令,没有任何段覆盖。 因此,有效地址将通过使用默认段本身来计算。 因此,上述指令的有效地址为:

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

有效地址= DS X 10H + BX寄存器的内容

    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的默认段寄存器DS来查找有效地址位置。 因此,上述公式中的有效地址为:

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

有效地址= SS X 10H + BX寄存器的内容

    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:

在这种情况下,在指令中直接提到要从中提取数据的地址。 默认情况下,此类情况将数据段( DS )作为其偏移量。 但是由于SS是给定指令中提到的寄存器,因此将在此处使用它。 因此,给定指令的有效地址为:

    Effective Address = SS X 10H + 1002H

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

微擎pc 导入前缀

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/542077.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

python—面向对象

面向过程 面向对象: 面向过程:—侧重于怎么做? 1.把完成某一个需求的 所有步骤 从头到尾 逐步实现 2.根据开发要求,将某些功能独立的代码封装成一个又一个函数 3.最后完成的代码,就是顺序的调用不同的函数 特点&#…

5中bug vue_苹果官网出BUG!这些都只要一两百元

近日,有网友在网上反馈称,他发现苹果官网商城出现了BUG!众多上千元的产品,BUG价只需一两百元。比如Shure MOTIV MV88 Digital立体声电容式麦克风配件。正常售价1288元,而BUG后的价格是235元。UBTECH Jimu Astrobot Cos…

常用压缩,解压与打包

常用压缩格式: .zip .zg .bz2 .tar.gz .tar.bz2.zip格式压缩zip 压缩文件名 源文件#压缩文件注:压缩文件名写.zip后缀是为了标记该文件的压缩类型,方便管理。注:在压缩时有压缩格式转换,所以当源文件很小时&#xff0c…

css禁用选中文本_使用CSS禁用文本选择突出显示

css禁用选中文本Introduction: 介绍: Texts are the most fundamental elements of any websites or web pages, they form the basis of the web pages or websites because if you don’t write something that you will not be able to present anything. There…

CDN加速实现—varnish

CDN介绍: 1 . 对cdn的理解: CDN的全称是(Content Delivery Network),即内容分发网络;加速器,反向代理缓存。CDN系统能够实时的根据网络流量和各节点的连接,负载状况以及到用户的举例…

3dmax如何拆分模型_3dmax制作装饰柜1

大家好,今天我来为大家讲解一下如何利用3dmax制作装饰柜。我们需要制作装饰柜模型,当我们为它添加一个材质后,它就是这样的效果。单击创建,选择图形,对象为样条线,选择矩形在场景中进行创建。单击修改&…

TODO:macOS上ThinkPHP5和Semantic-UI集成

TODO:macOS上ThinkPHP5和Semantic-UI集成1. 全局安装 (on OSX via homebrew)Composer 是 homebrew-php 项目的一部分2. 把Xcode升级到8.1后继续安装Composer3. 使用composer创建TP5项目MWL-Dispatchcomposer create-project topthink/think MWL-Dispatch4. 配置apac…

np.expm1_JavaScript中带有示例的Math.expm1()方法

np.expm1JavaScript | Math.expm1()方法 (JavaScript | Math.expm1() Method) Math operations in JavaScript are handled using functions of math library in JavaScript. In this tutorial on Math.expm1() method, we will learn about the expm1() method and its workin…

距离传感器控制灯泡代码_生迪全彩智能 LED 灯泡体验评测

市面上大多数智能灯具无外乎智能控制,冷暖标准区间的简单调光,仅仅满足我们日常照明之外,似乎用处不多。如果有一款能在自己房间制造多彩氛围的灯泡就好了。这次有幸体验到了华为智能家居生态链产品生迪全彩智能 LED 灯泡,才发现彩…

mysql启动与关闭(手动与自动)

手动管理mysql的启动与关闭 [rootmysql ~]# service mysql start --手动启动mysqlStarting MySQL. SUCCESS![rootmysql ~]# service mysql stop --手动关闭mysql Shutting down MySQL.. SUCCESS! [rootmysql ~]# mysqld --verbose --help --查看MySQL的默认参数的具体值 如果每…

JavaScript中带有示例的Math.round()方法

JavaScript | Math.round()方法 (JavaScript | Math.round() Method) Math.round() is a function in math library of JavaScript that is used to round the given number floating-point number to the nearest integer value. Math.round()是JavaScript数学库中的函数&…

内部导线拉力测试_珠海后环回收试验机现金支付拉力试验机回收和谐温馨的环境...

珠海后环回收试验机现金支付拉力试验机回收和谐温馨的环境深圳富兴二手设备回收,拉力试验机回收,恒温恒湿箱回收,恒温恒湿试验箱回收,恒温恒湿培养箱回收,高低温试验箱回收,高低温冲击试验机回收&#xff0…

lvs负载均衡—ldirectord(DR模式的健康检查)

作用: 健康检查对企业而言也是由为重要,在生活中,有时候访问网页访问不到,就会跳出来一些图形告诉你访问失败,这就是健康检查的作用,当服务器都挂掉的时候,告诉你暂时访问不了。 ldirectord是后…

Reactor by Example--转

原文地址:https://www.infoq.com/articles/reactor-by-example Key takeaways Reactor is a reactive streams library targeting Java 8 and providing an Rx-conforming APIIt uses the same approach and philosophy as RxJava despite some API differencesIt i…

springboot项目后台运行关闭_springboot项目在服务器上部署过程(新手教程)

环境:服务器系统:ubuntu16jdkmysql工具 xshell6下载地址:https://www.netsarang.com/download/down_form.html?code622&downloadType0&licenseType1xftp6下载地址:https://www.netsarang.com/download/down_form.html?c…

如何在React Native中使用文本输入组件?

You know, an app becomes more authentic and professional when there is the interaction between the app and the user. 您知道,当应用程序与用户之间存在交互时,该应用程序将变得更加真实和专业。 The text input component in react-native brin…

lvs负载均衡—NAT模式

NAT模式原理图 Virtual Server via NAT : 用地址翻译实现虚拟服务器,地址转换器有能被外界访问到的合法IP地址,它修改来自专有网络的流出包的地址,外界看起来包是来自地址转换器本身,当外界包送到转换器时,它能判断出应该将包送到内部网的哪个节点。 优点是节省IP …

Django1.9开发博客06- 模板继承

模板继承就是网站的多个页面可以共享同一个页面布局或者是页面的某几个部分的内容。通过这种方式你就需要在每个页面复制粘贴同样的代码了。 如果你想改变页面某个公共部分,你不需要每个页面的去修改,只需要修改一个模板就行了,这样最大化复用…

乐高机器人亮剑_2500名选手大比拼 全球机器人广州从化“亮剑”

导读:国际机器人从化总动员学生自己编程、拼装的机器人既能像相扑手一样摔跤,又能像蜘蛛侠一样爬上爬下。还有智能垃圾处理系统,瞄准城市垃圾分类下的“痛点”。在2019RoboRAVE国际教育机器人大会全球总决赛的现场,只有想不到&…

python 编码问题_Python电源挑战| 竞争编码问题

python 编码问题Question: 题: A power function is that positive number that can be expressed as x^x i.e x raises to the power of x, where x is any positive number. You will be given an integer array A and you need to print if the elements of arr…