存储器间接寻址方式_8086中的数据存储器寻址模式

存储器间接寻址方式

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

存储器间接寻址方式

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

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

相关文章

oracle asm 删除diskgroup,ASM磁盘组删除DISK操作

没想到这么简单的操作,由于不熟悉还碰到了两个小问题。[oracledbserver1 ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.2.0 Production on Tue Aug 9 10:08:062011Copyright (c) 1982, 2010, Oracle.All rights reserved.Connected to:Oracle Database 11g Ent…

intellij idea 最常用的快捷键

F2, 可以快速的向下跳走 CtrlF7,可以查询当前元素在当前文件中的引用,然后按 F3 可以选择AltQ,可以看到当前方法的声明CtrlP,可以显示参数信息CtrlAltV,可以引入变量。例如:new String(); 自动导…

如何在Java中检查字符串是否为数字?

We will check whether string is a number or not – with the help of logic we will solve this problem, 我们将检查字符串是否为数字-借助逻辑,我们将解决此问题, In the first step, we will take a string variable named str and store any val…

oracle清理告警日志,Oracle 跟踪/告警/监听日志的清理脚本

[root ~]# cat del_oracle_log.sh#!/bin/bashsource /home/oracle/.bash_profilefunction audit_log(){ #---audit_log日志跟踪文件#audit_log$(strings $ORACLE_HOME/dbs/spfile$ORACLE_SID.ora|grep -i audit_file_dest|awk -F {print $NF}|sed "s///g")audit_lo…

python爬虫之scrapy框架

Scrapy是一个为了爬取网站数据,提取结构性数据而编写的应用框架。 其可以应用在数据挖掘,信息处理或存储历史数据等一系列的程序中。其最初是为了页面抓取 (更确切来说, 网络抓取 )所设计的, 也可以应用在获取API所返回的数据(例如 Amazon As…

oracle中的事务回滚,ORACLE 死事务的回滚

死事务出现在异常关闭数据库或者事务进程不正常结束,比如KILL -9,shutdown abort的情况下。当前数据库里的死事务可以通过查询内部表x$ktuxe来获得。select ADDR,KTUXEUSN,KTUXESLT,KTUXESQN,KTUXESIZ from x$ktuxe where KTUXECFLDEAD;ADDR …

大数据数据可视化设计原则_数据可视化设计的8顶帽子

大数据数据可视化设计原则8 hats of data visualization are basically the important persons and their roles that are basically required to carry out data visualization are as follows: 数据可视化有8个基本要素,而进行数据可视化所需的基本角色如下&#…

debian8.8安装谷歌浏览器

第一步:下载: wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb //32位 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb //64位第二步:安装dpkg -i google-chrome*.deb…

MB_LEN_MAX常数,带C ++示例

C MB_LEN_MAX宏常量 (C MB_LEN_MAX macro constant) MB_LEN_MAX constant is a macro constant which is defied in climits header, it is used to get the maximum number of bytes in a multibyte character, for any locale, it returns maximum number of bytes that a m…

php谷歌收录接口,php实现查询百度google收录情况(示例代码)

PHP$SEOdetail array();$domain !empty($_GET[q]) ? $_GET[q] : www.mycodes.net;baidudetail($domain);googledetail($domain);var_dump($SEOdetail);function baidudetail($domain) {$baidu_site http://www.baidu.com/baidu?wordsite%3A . $domain;$baidu_link http:/…

Linux学习第三步(Centos7安装mysql5.7数据库)

版本:mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar 前言:在linux下安装mysql不如windows下面那么简单,但是也不是很难。本文向大家讲解了如何在Centos7下如何安装mysql5.7版本,如果有什么问题和错误的地方,欢迎大家指出。 注释&…

linux oracle删除恢复数据恢复,Linux下Oracle误删除数据文件恢复操作

检查数据文件的位置如下:SQL> select name from v$datafile;NAME--------------------------------------------------------------------------------/u01/app/Oracle/oradata/marven/system01.dbf/u01/app/oracle/oradata/marven/undotbs1.dbf/u01/app/oracle/…

数据库如何处理数据库太大_网络数据库中的数据处理

数据库如何处理数据库太大Before learning the data manipulation in a network model, we are discussing data manipulation language, so what is the data manipulation language? 在学习网络模型中的数据操作之前,我们正在讨论数据操作语言,那么什…

oracle12537错误,ORA-12537:TNS:connection closed错误处理方法

1.ORA-12537:TNS:connection closed错误处理过程检查监听正常,Oracle服务也是正常启动的,但是登录不进去。2.解决方案1. cd $ORACLE_HOME/bin/ 进入bin目录2. ll oracle-rwxrwxrwx. 1 ora12 dba 323762222 6?. 14 19:12 oracle3.chmod 6571 oracle 更改…

操作系统中的死锁_操作系统中的死锁介绍

操作系统中的死锁1.1究竟什么是僵局? (1.1 What exactly is a deadlock?) In a multiprogramming environment, there may be several processes with a finite number of resources. A process may request another resource while still holding some of the oth…

《云数据管理:挑战与机遇》2.3 数据库系统

本节书摘来自华章出版社《云数据管理》一书中的第2章,第3节,作者迪卫艾肯特阿格拉沃尔,更多章节内容可以访问云栖社区“华章计算机”公众号查看本节中,我们将为数据库系统中的一些主要概念提供一个相当抽象、简洁和高层次的描述。…

sql server与oracle的分页,详解SQLServer和Oracle的分页查询

不管是DRP中的分页查询代码的实现还是面试题中看到的关于分页查询的考察,都给我一个提示:分页查询是重要的。当数据量大的时候是必须考虑的。之前一直没有花时间停下来好好总结这里。现在又将Oracle视频中关于分页查询的内容看了一遍,发现很容…

java treemap_Java TreeMap lastEntry()方法与示例

java treemapTreeMap类的lastEntry()方法 (TreeMap Class lastEntry() method) lastEntry() method is available in java.util package. lastEntry()方法在java.util包中可用。 lastEntry() method is used to return the entry (key-value pairs) that exists with the large…

LeetCode OJ 之 Valid Anagram

题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s "anagram", t "nagaram", return true.s "rat", t "car", return false. Note: You may assume the string…