通用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字段。

    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.

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

  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个字节的立即数据。

  6. Immediate Operand to memory with 16-bit displacement:

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

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指令

通用apdu指令_8086微处理器中的通用指令格式相关推荐

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

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

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

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

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

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

  4. 逻辑地址物理地址计算_8086微处理器中的物理地址计算问题

    逻辑地址物理地址计算 Q1) The value of Code Segment (CS) Register is 4042H and the value of different offsets i ...

  5. nuxt.js的核心代码_Nuxt.js中的通用应用程序代码结构

    nuxt.js的核心代码 by Krutie Patel 通过克鲁蒂·帕特尔(Krutie Patel) Nuxt.js中的通用应用程序代码结构 (Universal application code ...

  6. 【汇编语言】通用数据处理指令——位操作类指令

    通用数据处理指令--位操作类指令 文章目录 通用数据处理指令--位操作类指令 一.逻辑运算指令 1.逻辑与指令AND 2.逻辑或指令OR 3.逻辑非指令NOT 4.逻辑异或指令XOR 5.逻辑运算的应 ...

  7. 【汇编语言】通用数据处理指令——算术运算类指令

    通用数据处理指令--算术运算类指令 文章目录 通用数据处理指令--算术运算类指令 一.状态标志 1.进位标志CF(Carry Flag) 2.溢出标志OF(Overflow Flag) 3.零标志ZF ...

  8. 【汇编语言】通用数据处理指令——数据传送类指令

    通用数据处理指令--数据传送类指令 文章目录 通用数据处理指令--数据传送类指令 一.MOV指令 1.数据长度 2.传送方式 3.常见错误 二.XCHG指令 1.数据长度 2.空操作指令NOP(no- ...

  9. 【生物信息学】:基于Linux下的pgap安装及通用教程(持续更新中)

    [PGAP:基于Linux下的安装及通用教程] NCBI软件pgap安装及通用教程 1.需要一个Linux操作系统: 2.基于Linux系统安装docker及pgap 3.pgap测试与使用 -- p ...

最新文章

  1. 前沿技术探秘:知识图谱构建流程及方法
  2. DELPHI listbox去除重复项
  3. 用python pandas按块读取超大csv/txt
  4. B.The Tortoise and the Hare 长春
  5. micropython oled中文_micropython中怎么将gb2312编码的字节流变成中文
  6. 简书python_python实现简书点赞
  7. SqlHelper的编写
  8. 【转载】ARX程序再VS2002中的调试初探
  9. 图书馆管理系统代码html语言,图书管理系统html - WEB源码|源代码 - 源码中国
  10. 朱兰质量手册中文第5版【第2章如何认识质量】
  11. Filebeat日志采集
  12. C++ vector详细用法
  13. 家用NAS上安装Domino
  14. 【Python】写了一个简单的照片按EXIF日期保存脚本
  15. The request was rejected because the URL contained a potentially malicious String “//“
  16. 奶牛家族(斐波那契数列的快速幂乘矩阵算法)
  17. RxJS结合vue-rx, Akita的介绍和使用
  18. win10字体设置修改方法【乡巴佬】
  19. eos游戏开发德州扑克
  20. UVa1600 Patrol Robot (BFS求最短路进阶)

热门文章

  1. java类初始化顺序_《To Be a Better Javaer》-- Java 基础篇 vol.2:面向对象
  2. java 字母金字塔_LeetCode756:金字塔转换矩阵(JAVA题解)
  3. python的特征提取实验一_Spark 2.1.0 入门:特征抽取 — TF-IDF(Python版)
  4. 前窗玻璃膜贴了一周还有气泡_关于车窗玻璃的养护你了解多少?
  5. oracle的exp和imp,oracle exp和imp
  6. python读取字典元素笔记_Python 学习笔记 - 字典
  7. python涉及到的逻辑_涉及逻辑运算的python表达式的运算顺序
  8. Zookeeper3.6.1常用的Shell命令
  9. 日常问题——Mac下新建目录报Read-only file system
  10. OSPF-5类LSA和4类LSA