当前位置:网站首页>CPU的寄存器
CPU的寄存器
2022-07-02 06:26:00 【想搞钱的小陈】
寄存器是CPU的组成部分,寄存器可以用来暂存指令、数据和地址(这些是程序执行的关键)。
在CPU至少要存在6种寄存器
- 指令寄存器(IR)
- 程序计数器(PC)
- 地址寄存器(AR)
- 数据寄存器(AC)
- 累加寄存器(AC)
- 程序状态字寄存器(PSW)
指令:操作码+地址码
数据寄存器
Data Register,主要用来由主存(内存)读取的一条指令或一个数据字。(一个字=16bit)
地址寄存器
Address Register, 来保存CPU当前所访问的主存单元的地址。
由于在主存和CPU之间存在操作速度上的差异,所以必须使用地址寄存器来暂时保存主存的地址信息,直到主存的存取操作完成为止。
程序计数器
Program Counter,用来指出下一条指令在主存储器中的地址,在程序执行之前,首先必须将程序的首地址,即程序第一条指令所在主存单元送入PC,因此PC的内容即是从主存提取的第一条指令的地址
累加寄存器
Accumulator,⼀个通⽤寄存器。当运算器的算术逻辑单元ALU执⾏算术或逻辑运算时,为ALU提供⼀个⼯作区,可以为ALU暂时保存⼀个操作数或运算结果
指令寄存器
Instruction Register,⽤来保存当前正在执⾏的⼀条指令,当执⾏⼀条指令时,⾸先把该指令从主存读取到数据寄存器中,然后再传送⾄指令寄存器
程序状态字寄存器
Program Status Word,来表征当前运算的状态及程序的⼯作⽅式,程序状态字寄存器是⼀个保存各种状态条件标志的寄存器
边栏推荐
- Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory'
- PointNet原理证明与理解
- sparksql数据倾斜那些事儿
- Spark SQL task performance optimization (basic)
- PHP returns the abbreviation of the month according to the numerical month
- A slide with two tables will help you quickly understand the target detection
- ModuleNotFoundError: No module named ‘pytest‘
- iOD及Detectron2搭建过程问题记录
- MapReduce concepts and cases (Shang Silicon Valley Learning Notes)
- SSM garbage classification management system
猜你喜欢

Point cloud data understanding (step 3 of pointnet Implementation)

Cognitive science popularization of middle-aged people

腾讯机试题
![[Bert, gpt+kg research] collection of papers on the integration of Pretrain model with knowledge](/img/2e/e74d7a9efbf9fe617f4d7b46867c0a.png)
[Bert, gpt+kg research] collection of papers on the integration of Pretrain model with knowledge

Play online games with mame32k

iOD及Detectron2搭建过程问题记录

Faster-ILOD、maskrcnn_ Benchmark training coco data set and problem summary

生成模型与判别模型的区别与理解

MySQL无order by的排序规则因素

Pratique et réflexion sur l'entrepôt de données hors ligne et le développement Bi
随机推荐
離線數倉和bi開發的實踐和思考
Module not found: Error: Can't resolve './$$_ gendir/app/app. module. ngfactory'
SSM supermarket order management system
SSM实验室设备管理
[introduction to information retrieval] Chapter 6 term weight and vector space model
Two table Association of pyspark in idea2020 (field names are the same)
一个中年程序员学习中国近代史的小结
Oracle 11g uses ords+pljson to implement JSON_ Table effect
MapReduce concepts and cases (Shang Silicon Valley Learning Notes)
iOD及Detectron2搭建过程问题记录
使用 Compose 实现可见 ScrollBar
allennlp 中的TypeError: Object of type Tensor is not JSON serializable错误
矩阵的Jordan分解实例
【信息检索导论】第一章 布尔检索
Two dimensional array de duplication in PHP
CRP implementation methodology
Convert timestamp into milliseconds and format time in PHP
超时停靠视频生成
DNS attack details
Using compose to realize visible scrollbar