存储器间接寻址方式

In this type of addressing mode, first the offset address is calculated, then the memory address is calculated and then the operand form that memory location is fetched. There are following modes which lie under the Data Addressing Mode:

在这种类型的寻址模式下 ,首先计算偏移地址,然后计算内存地址,然后获取内存位置的操作数形式。 数据寻址模式下有以下几种模式

  1. Direct Addressing Mode

    直接寻址模式

  2. Base Addressing Mode

    基本寻址模式

  3. Base Relative Addressing Mode

    基本相对寻址模式

  4. Index Addressing Mode

    索引寻址模式

  5. Index relative addressing mode

    索引相对寻址模式

  6. Base plus Index Addressing Mode

    基本加索引寻址模式

  7. Base relative plus Index Addressing Mode

    基本相对加索引寻址模式

1)直接寻址模式 (1) Direct Addressing Mode)

In this addressing mode, the offset is specified within the instructions. What this means is that the offset address is directly stored within square brackets and is not present inside any register.

在这种寻址模式下,偏移量在指令中指定。 这意味着偏移地址直接存储在方括号中,并且不存在于任何寄存器中。

Example:

例:

    MOV AL, [4000H]
MOV [1234H], BX

2)基本寻址模式 (2) Base Addressing Mode)

In this addressing mode, the offset address for any operand is stored in the base register BX.

在这种寻址模式下,任何操作数的偏移地址都存储在基址寄存器BX中。

Example:

例:

    MOV AL, [BX]

3)基本相对寻址模式 (3) Base Relative Addressing Mode)

In this addressing mode also, the offset address is stored within the Base register but the difference is that there is some displacement present with it. This displacement can be either of 8 bits or 16 bits. Hence, the offset address will be equal to the contents of the base register + 8/16 bit displacement.

同样在这种寻址模式下,偏移地址存储在基址寄存器中,但不同之处在于偏移量存在。 此位移可以是8位或16位。 因此,偏移地址等于基址寄存器的内容+ 8/16位位移。

Example:

例:

    MOV AL, [BX + 05H]    {here, displacement is of 8 bits}
MOV AL, [BX+1243H]  {here, displacement is of 16 bits}

4)索引寻址模式 (4) Index Addressing Mode)

In this addressing mode, the offset address is defined in the Index Register. (It should be noted here that the Index registers act as an offset for Data Segment as well.) So, the memory location of the operand is calculated with the help of DS and SI.

在这种寻址模式下,偏移地址在索引寄存器中定义。 (此处应注意,索引寄存器也充当数据段的偏移量。)因此,操作数的存储位置是借助DS和SI来计算的。

Example:

例:

    MOV BL, [SI]
MOV [SI], DH

5)索引相对寻址方式 (5) Index relative addressing mode)

In this addressing mode, the offset address is equal to the content of index register plus the 8 or 16-bit displacement. It is important to note here that the displacement in all relative addressing modes is a signed number, i.e. the displacement value can either be a positive or a negative hexadecimal number.

在这种寻址模式下,偏移地址等于索引寄存器的内容加上8位或16位位移。 在此重要的是要注意,在所有相对寻址模式下的位移都是有符号数,即位移值可以是正十六进制数或负十六进制数。

Example:

例:

    MOV BL, [SI + 07H]        {Here, the displacement is of 8 bits}
MOV BL, [SI – 3034H]    {Here, the displacement is of 16 bits}

6)基本加索引寻址模式 (6) Base plus Index Addressing Mode)

In this addressing Mode, the offset address is calculated by both the base register and the index register. Hence, the offset address will be equal to the content of the base register plus the content of the Index register.

在该寻址模式下,偏移地址由基址寄存器和索引寄存器共同计算。 因此,偏移地址将等于基址寄存器的内容加上索引寄存器的内容。

Example:

例:

    MOV AL, [BX + SI]
MOV [BX + SI], CL

7)基本相对加索引寻址模式 (7) Base relative plus Index Addressing Mode)

This addressing mode is almost same to the Base plus Index Addressing mode, but like the other relative addressing modes, the difference is only that this mode has a displacement of 8 or 16 bits.

该寻址模式与“基本加索引寻址”模式几乎相同,但是与其他相对寻址模式一样,不同之处仅在于该模式的位移为8位或16位。

Example:

例:

    MOV CL, [BX + SI + 0AH]     {here, the displacement is of 8 bits}
MOV AL, [BX + SI + AE07H]   {here, the displacement is of 16 bits}

翻译自: https://www.includehelp.com/embedded-system/data-memory-addressing-mode-in-8086.aspx

存储器间接寻址方式

存储器间接寻址方式_8086中的数据存储器寻址模式相关推荐

  1. 存储器间接寻址方式_8086微处理器的程序存储器寻址模式

    存储器间接寻址方式 The Program Memory Addressing mode is used in branch instructions. These branch instructio ...

  2. 原型设计中展示数据的“行模式”与“列模式”的选择

    在原型设计中的一点点思考与总结: 界面中操作数据"行模式"还是"列模式",所谓"行模式"即将被操作的对象每个作为一行,而"列模式& ...

  3. 8051单片机有几个存储器地址空间?画出它的存储器结构图

    8051单片机有几个存储器地址空间?画出它的存储器结构图 8051中有三个存储器地址分别为:程序存储器ROM(CODE空间).片内数据存储器ROM(IDATA和DATA空间).片外数据存储器RAN(X ...

  4. PHP 设计模式 笔记与总结(9)数据对象映射模式

    [数据对象映射模式] 是将对象和数据存储映射起来,对一个对象的操作会映射为对数据存储的操作.例如在代码中 new 一个对象,使用数据对象映射模式就可以将对象的一些操作比如设置一些属性,就会自动保存到数 ...

  5. mcq 队列_MCQ | 8086微处理器中的寻址模式

    mcq 队列 Question 1: 问题1: You are given the following instruction: ADD AX , [1024] You are provided th ...

  6. 寻址方式 寄存器寻址方式 立即数寻址方式 存储器寻址方式: 直接寻址方式,寄存器间接寻址方式,变址和基址寻址方式,基址变址寻址方式 串操作寻址方式 I/O端口寻址方式

    寻找操作数地址的方法 共有八种: 寄存器寻址方式 立即数寻址方式 存储器寻址方式:( 直接寻址方式,寄存器间接寻址方式,变址和基址寻址方式,基址变址寻址方式) 串操作寻址方式 I/O端口寻址方式 80 ...

  7. 计算机存储临时数据的存储器,计算机关闭后存储的数据不会丢失的内存储器是...

    大家好,我是时间财富网智能客服时间君,上述问题将由我为大家进行解答. 计算机关闭后存储的数据不会丢失的内存储器是只读存储器(ROM),因为它是固化在芯片内部的. 内存(Memory)是计算机中重要的部 ...

  8. 单片机片外程序存储器数据存储器操作命令

    说明:单片机片外程序存储器数据存储器操作命令与通常所说的存储器不同,和I2C总线的AT24C02不同,SPI协议的也不同,是指采用专用接口电路,应用P0口P2口地址总线和控制线的"三总线&q ...

  9. 数据存储(1):从数据存储看人类文明-数据存储器发展历程

    传统文本存储 泥版/钟鼎/甲骨/莎草纸/羊皮纸等文字存储 传统的考古学家和历史学家认为,楔形文字起源于美索不达米亚特殊的渔猎生活方式.这是较为通行的看法,西方的各种百科全书大都持这一观点.约在公元前3 ...

最新文章

  1. TCP和UDP和IP和HTTP和socket
  2. WebP图片格式,压缩提高28%
  3. 如何使用实时计算 Flink 搞定实时数据处理难题?
  4. 设置mac的全局命令
  5. vue中的 $children 和 $parent
  6. JavaScript中call,apply,bind方法的总结。
  7. vue-admin自定义后台管理系统(二)之vue-cli3创建前端项目
  8. Docker + Spring Boot + FastDFS 搭建一套分布式文件服务器,太强了!
  9. 【转】404、500、502等HTTP状态码介绍
  10. W,b的初始化和几种激活函数
  11. 阿尔法平台C语言编程题答案
  12. AlgoSec破解license
  13. postgresql 解锁表
  14. 三角肌前束(02):哑铃交替前举
  15. C语言LMS双麦克风消噪算法,基于两个时域LMS算法双麦克风系统分析.doc
  16. hao643.com劫持(修改快捷方式跳转至hao123.com)
  17. 使用弗洛伊德算法(Floyd-Warshall)找到所有对最短路径长度
  18. 如何开发一个企业级的 Go 应用?
  19. [转帖]P2P流媒体
  20. 怎么还原xp系统里的服务器,xp怎么还原电脑网络设置

热门文章

  1. permission denied是什么鬼?
  2. (六)Linux之设备驱动模型(续)
  3. ubuntu18安装python3.6.8_ubuntu 18.04 + Python 3.6.8 更换软件安装源
  4. python pep8模块_读懂PEP8,让你的Python代码更加优雅
  5. oracle数据库连接名是什么,连接到Oracle数据库的几种命名方式
  6. @async 默认线程池_SpringBoot 线程池的使用
  7. LDAP命令介绍---dsreplication--enable:DISABLE
  8. awk教程入门与实例练习(二)
  9. new URI(zk_servers_1) 路径包含下划线无法获取host的问题
  10. 排名前16的Java工具类