当前位置:网站首页>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:寻址方式的特点

边栏推荐
- Don't want teachers to see themselves with cameras in online classes? Virtual camera you deserve!
- Two common methods and steps of character device registration
- Vulkan-性能及精细化
- Shell 实现文件基本操作(切割、排序、去重)
- Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
- An excellent orm in dotnet circle -- FreeSQL
- v8
- Logback configuration file
- 关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
- Basic use of shell script
猜你喜欢

可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场

Install docker and use docker to install MySQL

One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function

How do educators find foreign language references?

【小程序项目开发-- 京东商城】uni-app之自定义搜索组件(中)-- 搜索建议

Feature Engineering: summary of common feature transformation methods

【单片机项目实训】八路抢答器
![[shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)](/img/7e/4f9d96edd04e9ffb26434baf34aa43.jpg)
[shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)

MySQL 23道经典面试吊打面试官

University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
随机推荐
Gan model architecture in mm
AcWing_ 188. Warrior cattle_ bfs
[jetcache] jetcache configuration description and annotation attribute description
多进程编程(一):基本概念
Nc17059 queue Q
【雅思阅读】王希伟阅读P1(阅读判断题)
【JetCache】JetCache的配置说明和注解属性说明
详解用OpenCV的轮廓检测函数findContours()得到的轮廓拓扑结构(hiararchy)矩阵的意义、以及怎样用轮廓拓扑结构矩阵绘制轮廓拓扑结构图
【日常训练】871. 最低加油次数
Multiprocess programming (V): semaphores
Understanding and application of least square method
【小程序项目开发-- 京东商城】uni-app之自定义搜索组件(中)-- 搜索建议
University of Oslo: Li Meng | deep reinforcement learning based on swing transformer
程序分析与优化 - 9 附录 XLA的缓冲区指派
MySQL 23 classic interview hanging interviewer
Solution to the problem of abnormal display of PDF exported Chinese documents of confluence
Multiprocess programming (4): shared memory
Multiprocess programming (II): Pipeline
Helm basic learning
The most painful programming problem in 2021, adventure of code 2021 Day24