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

边栏推荐
- MySQL 23 classic interview hanging interviewer
- NC20806 区区区间间间
- Slf4j + logback logging framework
- University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
- [golang syntax] map common errors golang panic: assignment to entry in nil map
- 为什么网站打开速度慢?
- Rust字符串切片、结构体和枚举类
- Overlay of shutter (Pop-Up)
- 关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
- 数组常用操作方法整理(包含es6)及详细使用
猜你喜欢
![Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration](/img/a3/55bb71d39801ceeee421a0c8ded333.png)
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration

Pageoffice - bug modification journey

Hundreds of continuous innovation to create free low code office tools

Multiprocess programming (I): basic concepts

Redis21 classic interview questions, extreme pull interviewer

University of Toronto: Anthony coach | the conditions of deep reinforcement learning can induce dynamic risk measurement

Shell implements basic file operations (SED edit, awk match)

为什么网站打开速度慢?

【雅思阅读】王希伟阅读P1(阅读判断题)

One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
随机推荐
图解网络:什么是虚拟路由器冗余协议 VRRP?
Redis21 classic interview questions, extreme pull interviewer
Use Jenkins II job
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
多进程编程(一):基本概念
Shell implements basic file operations (SED edit, awk match)
Nacos+openfeign error reporting solution
Shell脚本基本使用
Go custom sort
How do educators find foreign language references?
Nc20806 District interval
[target detection] r-cnn, fast r-cnn, fast r-cnn learning
[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)
NC24840 [USACO 2009 Mar S]Look Up
【luogu P4320】道路相遇(圆方树)
Preview word documents online
【日常训练】871. 最低加油次数
Markdown tutorial
Nc50528 sliding window
Introduction of UART, RS232, RS485, I2C and SPI