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

边栏推荐
- Pageoffice - bug modification journey
- [Luogu p4320] road meets (round square tree)
- 线程的启动与优先级
- [shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
- UART、RS232、RS485、I2C和SPI的介绍
- NC50965 Largest Rectangle in a Histogram
- pageoffice-之bug修改之旅
- An excellent orm in dotnet circle -- FreeSQL
- Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation
- Basic use of shell script
猜你喜欢
![[MCU project training] eight way answering machine](/img/a3/6a50619cd16269bf485a4a273677aa.jpg)
[MCU project training] eight way answering machine

文件操作IO-Part2

Shell implements basic file operations (SED edit, awk match)
![Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration](/img/a3/55bb71d39801ceeee421a0c8ded333.png)
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration

Sysdig analysis container system call

Solution to the problem of abnormal display of PDF exported Chinese documents of confluence

Seckill system design

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

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

The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail
随机推荐
NC20806 区区区间间间
2022中国3D视觉企业(引导定位、分拣场景)厂商名单
关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
Centos7 one click compilation to build MySQL script
Seckill system design
kubernetes编写yml简单入门
Shell 实现文件基本操作(sed-编辑、awk-匹配)
【小程序项目开发-- 京东商城】uni-app之自定义搜索组件(中)-- 搜索建议
图解网络:什么是虚拟路由器冗余协议 VRRP?
AcWing_ 188. Warrior cattle_ bfs
NC24840 [USACO 2009 Mar S]Look Up
[MCU project training] eight way answering machine
What website can you find English literature on?
Pageoffice - bug modification journey
How SQLSEVER removes data with duplicate IDS
Nc20806 District interval
Shell implements basic file operations (cutting, sorting, and de duplication)
文件操作IO-Part2
University of Oslo: Li Meng | deep reinforcement learning based on swing transformer
多进程编程(五):信号量