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

通用apdu指令

Introduction:

介绍:

In this article, we are going to discuss about the 6 general formats of instructions.

在本文中,我们将讨论6种通用指令格式。

  1. One byte instruction:

    一字节指令

    This is only one byte long and may have implied data and register.

    这只有一个字节长,可能包含隐含的数据和寄存器。

  2. Register to register:

    注册注册

    This instruction is 2 byte long. First byte specified opcode and width(w) of opcode and second byte specified register operand and R/M field.

    该指令为2个字节长。 第一个字节指定操作码和操作码的宽度(w),第二个字节指定寄存器操作数和R / M字段。

    General Instruction Formats in 8086 Microprocessor (1)

    Here,

    这里,

    MSB - Most significant bit and LSB - Least significant bit

    MSB-最高有效位, LSB-最低有效位

  3. Register to/from memory with no displacement:

    向内存中注册/从内存中迁移

    This format is also 2-byte form and similar to the register except the MOD field.

    该格式也是2字节格式,除了MOD字段外,与寄存器相似。

  4. Register to/from memory with displacement:

    通过位移向/从内存注册

    This is same as the third one having one or two additional byte for displacement.

    这与第三位相同,具有一个或两个附加字节用于移位。

    General Instruction Formats in 8086 Microprocessor (2)
  5. Immediate operand to register:

    立即操作数进行注册

    In it first byte as well as three bits from the second byte which are used for the register field. In case of register to register format is reserved for the opcode. It also contains 1 or 2 bytes of immediate data.

    在它的第一个字节以及第二个字节之后的三个位用于寄存器字段。 如果是寄存器对寄存器格式,则保留操作码。 它还包含1或2个字节的立即数据。

    General Instruction Formats in 8086 Microprocessor (3)
  6. Immediate Operand to memory with 16-bit displacement:

    立即操作数以16位位移到内存

    General Instruction Formats in 8086 Microprocessor (4)

Opcode have single bit indicators their significance is as follows,

操作码具有单个位指示符,其含义如下:

  • W bit: It tells us whether the instruction is to operate over an 8-bit or 16-bit

    W位 :它告诉我们指令是在8位还是16位上运行

        W=0 /8bit
    W=1 /16bit
    
    
  • D bit: It tells whether the register specified field is the source register or destination register.

    D位 :告诉寄存器指定字段是源寄存器还是目标寄存器。

        D=0    Source register
    D=1    Destination
    
    
  • S bit: This is called sign extension bit; it is used along with the w bit.

    S位 :这称为符号扩展位; 它与w位一起使用。

        S   W
    0   0       8 bit operant with 8bit immediate
    0   1       operant. 16 bit operant with 6 bit
    0   1       immediate operant. 16 bit operation
    1   1       with sign extended immediate data.
    
    
  • V bit: Used in case of shift and rotate instruction if v=0, then shift count is 1. If v=1 then count is stored into the CL register and count should be count=2.

    V位 :如果v = 0,则在移位和旋转指令的情况下使用,则移位计数为1。如果v = 1,则将计数存储到CL寄存器中,并且计数应为count = 2。

  • Z bit: This is used along with the string primitives such as REP for comparison with ZF flag.

    Z位 :与Z标记的字符串原语(例如REP)一起使用。

Conclusion:

结论:

In the above article, I have discussed the different instruction formats of the microprocessors briefly, with relative diagrams also. As I said earlier at the beginning of this article also that this topic of computer system organization is very important from the examination point of view and also the base of your knowledge about computer architecture. For further queries shoot your questions in the comment section below!

在以上文章中,我简要讨论了微处理器不同指令格式 ,并附带了相关图表。 就像我在本文开头所说的那样,从检查的角度以及计算机基础知识的基础来说,计算机系统组织这一主题非常重要。 如有其他疑问,请在下面的评论部分中提出您的问题!

翻译自: https://www.includehelp.com/embedded-system/general-instruction-formats-in-8086-microprocessor.aspx

通用apdu指令

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

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

相关文章

Linux中断不能进行任务调度,关中断是否禁止任务调度?关中断能作为互斥吗?...

今天再看《嵌入式软件系统教程》((美)西蒙 著,陈向群 等译) ,里面讲到关中断会关了任务调度,作者没说原因,我也不知道为什么,所以查了查网络。在这个网址http://www.hqwic.com/bbs/topic.aspx?topicid11253上有一个讨…

Win10系统怎样让打开图片方式为照片查看器

打开注册表编辑器之后,我们双击左侧的目录,依次打开HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft目录,如下图所示。 在Microsoft目录下,我们需要找到Windows Photo Viewer\Capabilities\FileAssociations目录项,直到看到该子…

python爬虫开发 从入门到实战 pdf 谢乾坤_python字符串和整数相互转换的实例分享...

python 字符串和整数的转换方法数字转成字符串方法一:使用格式化字符串:tt322tem%d %tttem即为tt转换成的字符串常用的格式化字符串:%d 整数%f%F 浮点数%e%E 科学计数%g%G e 和%f/%E 和%F 的简写%% 输出%格式化操作符辅助指令符号 作用* 定义宽度或者小数…

c语言插入排序算法_插入排序算法,流程图和C,C ++代码

c语言插入排序算法In the last article, we discussed about the bubble sort with algorithm, flowchart and code. In this article, we are going to discuss about another basic sorting technique i.e. insertion sort. 在上一篇文章中,我们讨论了用算法&…

EF使用CodeFirst方式生成数据库技巧经验

前言 EF已经发布很久了,也有越来越多的人在使用EF。如果你已经能够非常熟练的使用EF的功能,那么就不需要看了。本文意在将自己使用EF的方式记录下来备忘,也是为了给刚刚入门的同学一些指导。看完此文,你应该就学会以CodeFirst的方…

java jar包示例_Java包getImplementationVersion()方法和示例

java jar包示例包类的getImplementationVersion()方法 (Package Class getImplementationVersion() method) getImplementationVersion() method is available in java.lang package. getImplementationVersion()方法在java.lang包中可用。 getImplementationVersion() method …

c语言中字母的定义,c语言字符串定义与初始化 - 且听风吟

字符串的两种定义方式char数组char sa[] “hello world”;char指针char *sp “hello world”;这两种方式都产生了一个”hello world”的字符串常量,字符串常量存储在静态存储区中,静态存储区中的内容在程序运行的整个过程中都存在,而且只存储一份。数组…

python计算两字符串中的位置_python – 计算两个字符串之间距离的算法

是否有任何字符串距离算法没有考虑到单词的顺序?以下算法未提供所需结果(在该示例中,所需结果应为1):import jarojaro.jaro_winkler_metric(uMichael Jordan,uJordan Michael)>>>0.47import LevenshteinLevenshtein.ratio(Michael Jordan,Jorda…

php unset函数_PHP | 使用unset()函数从数组中删除元素

php unset函数Given an array and we have to remove an element from the array. 给定一个数组,我们必须从数组中删除一个元素。 unset()函数 (unset() function) To remove an element from an array, we can use a PHP library unset() function, it accepts th…

vi显示行号

vi显示行号 :set nu 带行号查看,并不改变文件内容:set nonu 取消带行号查看在每个用户的主目录下,都有一个 vi 的配置文件".vimrc"或".exrc"用户可以编辑它,使这些设置在每次启动 vi 时,都有效.例如,加入如下设置行:set nu 显示行号…

对象过滤某个属性 循环 php_37道PHP面试题(附答案)

1、什么事面向对象?主要特征是什么?面向对象是程序的一种设计方式,它利于提高程序的重用性,使程序结构更加清晰。主要特征:封装、继承、多态。2、SESSION 与 COOKIE的区别是什么,请从协议,产生的…

项响琴C语言书籍在线浏览,电子琴 c语言程序

实用#include unsigned char code table[]{0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};unsigned char temp;unsigned char key;unsigned char i,j;unsigned char STH0;unsigned char STL0;unsigned int code tab[]{64021,64103,64260,…

Java File类boolean createNewFile()方法(带示例)

文件类布尔型createNewFile() (File Class boolean createNewFile()) This method is available in package java.io.File.createNewFile(). 软件包java.io.File.createNewFile()中提供了此方法。 This method is used to create a new file by using createNewFile() method a…

oracle   SQL执行过程

1.sql执行过程1>解析(判断对象是否存在,是否有权限查询,语义解析,检查缓存中是否有相同的SQL等等)2>优化(CBO确定优化模式,确定访问路径,联接顺序,过程中通过很多综…

vue-video-player修改src就会报错_4、修改入口点代码

在riscv上电时,会进行CPU自检,然后跳转到bootloader处执行。bootloader设置好kernel的运行环境后,从硬盘加载kernel到内存,最后再跳转到kernel入口地址。我们采用的bootloader为OpenSBI,被加载到0x80000000地址&#x…

数码管超声波c语言黑51,51单片机开发板-超声波测距-数码管显示

《51单片机开发板-超声波测距-数码管显示》由会员分享,可在线阅读,更多相关《51单片机开发板-超声波测距-数码管显示(16页珍藏版)》请在人人文库网上搜索。1、计算机技术系项目工作报告课程名称单片机开发板设计与制作实训班级学号姓名项目名称超声波测距…

java 方法 示例_Java ArrayDeque带有示例的removeFirstOccurrence()方法

java 方法 示例ArrayDeque类removeFirstOccurrence()方法 (ArrayDeque Class removeFirstOccurrence() method) removeFirstOccurrence() method is available in java.lang package. removeFirstOccurrence()方法在java.lang包中可用。 removeFirstOccurrence() method is use…

社交应用动态九宫格图片的规则

这里主要以微信和QQ空间为作为研究对象,得到的结论如下。 QQ空间里的动态 iOS设备,以iPhone6为分界 iPhone6及以上分辨率的设备: 当宽且高同时 > 512px时,判断 宽/高的比例值:大于 2时,以高度为基准&…

c语言实现链表结构6,用c语言实现的链表结构--数据结构实验

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼#include"stdio.h"//使用new指针来将临时变量重新初始化#include"stdio.h"typedef int ElemType;typedef struct LNode{ElemType data;struct LNode *next;}LNode,*LinkList;void InitList(LinkList &L)//…

splunk中 如何隐藏input_翻糖制作中,如何避免裂缝,如何隐藏裂缝,如何防粘?...

翻糖蛋糕 因精致的样子和栩栩如生的各种造型深得人们的喜爱,它不仅满足了人们对蛋糕口味及装饰日益多样化的需求,同时也在动手制作的过程中,享受到美食与生活的无穷乐趣。不过裂缝,不平整,干燥对翻糖作品来说无疑是噩梦…