当前位置:网站首页>1.12 - 指令
1.12 - 指令
2022-07-02 23:48:00 【是李黏黏鸭】
目录
一、指令的概念
所谓指令,是指表示机器语言的语句;
一条指令就是一条机器语言的语句;
是一组有意义的二进制代码;
二、指令的组成
1、操作码字段+地址码字段=指令
![]()
2、操作码字段
决定了操作的性质;
也就是决定了要执行的操作是什么,是加法、减法、还是取数等;
3、地址码字段
决定了操作的对象是什么;
决定了操作数和操作结果存放的位置;
三、寻址方式

1、立即寻址方式
操作数就在地址码里面;
就是说地址码里放的就是操作数本身;
CPU需要数据时直接就可以取到;
2、直接寻址方式
操作数在主存中;
地址码字段中存放的是操作数在主存中的存储地址;
CPU根据地址码中存放的地址,就可以读取到主存中的操作数;
3、间接寻址方式
地址码字段中存放的是 主存中存放操作数的地址 的空间的地址;
也就是说CPU根据存放的地址能在主存中找到存放操作数的地址;然后再根据地址访问对应的操作数;
4、寄存器寻址方式
与直接寻址方式类似;只不过操作数直接存在寄存器中;
地址码字段中存放的是操作数在寄存器中的存储地址;
CPU根据地址码中存放的地址,就可以读取到寄存器中的操作数;
5、寄存器间接寻址方式
与间接寻址方式类似;只不过操作数直接存在寄存器中;
地址码字段中存放的是 寄存器中存放操作数的地址 的空间的地址;
也就是说CPU根据存放的地址能在寄存器中找到存放操作数的地址;然后再根据地址访问对应的操作数;
6、相对寻址方式、基址寻址方式、变址寻址方式
考法固定:对应的寻址方式名称+偏移量;
四、考法1:寻址方式的特点

边栏推荐
- Cmake basic use
- Bypass AV with golang
- Shell implements basic file operations (SED edit, awk match)
- 【luogu P4320】道路相遇(圆方树)
- Multiprocess programming (V): semaphores
- Logback configuration file
- mm中的GAN模型架构
- Install docker and use docker to install MySQL
- Nc17059 queue Q
- About the practice topic of screen related to unity screen, unity moves around a certain point inside
猜你喜欢

Where can I find the English literature of the thesis (except HowNet)?

利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度

antv x6节点拖拽到画布上后的回调事件(踩大坑记录)

Detailed explanation of pod life cycle

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

如何系统学习机器学习

Shell implements basic file operations (cutting, sorting, and de duplication)

AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决

Maya fishing house modeling

Shell implements basic file operations (SED edit, awk match)
随机推荐
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
百数不断创新,打造自由的低代码办公工具
NC17059 队列Q
An excellent orm in dotnet circle -- FreeSQL
Markdown使用教程
NC24840 [USACO 2009 Mar S]Look Up
NC24840 [USACO 2009 Mar S]Look Up
node_modules删不掉
Bloom filter
Multiprocess programming (I): basic concepts
毕业总结
[shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
FAQ | FAQ for building applications for large screen devices
Implement the foreach method of array
Shell脚本基本使用
线程的启动与优先级
【单片机项目实训】八路抢答器
node_ Modules cannot be deleted
Linux Software: how to install redis service