当前位置:网站首页>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,来表征当前运算的状态及程序的⼯作⽅式,程序状态字寄存器是⼀个保存各种状态条件标志的寄存器
边栏推荐
- 叮咚,Redis OM对象映射框架来了
- Error in running test pyspark in idea2020
- Huawei machine test questions-20190417
- CONDA creates, replicates, and shares virtual environments
- [paper introduction] r-drop: regulated dropout for neural networks
- 离线数仓和bi开发的实践和思考
- Data warehouse model fact table model design
- 架构设计三原则
- view的绘制机制(一)
- MySQL组合索引加不加ID
猜你喜欢
[paper introduction] r-drop: regulated dropout for neural networks
Interpretation of ernie1.0 and ernie2.0 papers
【MEDICAL】Attend to Medical Ontologies: Content Selection for Clinical Abstractive Summarization
Principle analysis of spark
ABM论文翻译
The first quickapp demo
PointNet原理证明与理解
[introduction to information retrieval] Chapter 3 fault tolerant retrieval
基于pytorch的YOLOv5单张图片检测实现
《Handwritten Mathematical Expression Recognition with Bidirectionally Trained Transformer》论文翻译
随机推荐
使用Matlab实现:幂法、反幂法(原点位移)
读《敏捷整洁之道:回归本源》后感
Implement interface Iterable & lt; T>
Mmdetection installation problem
Faster-ILOD、maskrcnn_benchmark训练自己的voc数据集及问题汇总
Calculate the total in the tree structure data in PHP
[introduction to information retrieval] Chapter 1 Boolean retrieval
離線數倉和bi開發的實踐和思考
Point cloud data understanding (step 3 of pointnet Implementation)
第一个快应用(quickapp)demo
Two dimensional array de duplication in PHP
软件开发模式之敏捷开发(scrum)
[tricks] whiteningbert: an easy unsupervised sentence embedding approach
【信息检索导论】第一章 布尔检索
parser. parse_ Args boolean type resolves false to true
yolov3训练自己的数据集(MMDetection)
图片数据爬取工具Image-Downloader的安装和使用
PointNet原理证明与理解
[torch] some ideas to solve the problem that the tensor parameters have gradients and the weight is not updated
生成模型与判别模型的区别与理解