P2 CPU基础
可以把CPU分为控制器和运算器,其中控制器和运算器又都分为 4 个部分
![](https://img-blog.csdnimg.cn/img_convert/4ba746a2fbb5931bc7cebf75e017f74a.png)
P3 运算器
运算器又由 算数逻辑单元ALU,累加寄存器AC ,数据缓冲寄存器DR,状态条件寄存器PSW等组成。
通用寄存器是一个类型,累加寄存器是属于它的一个子类。
下图,当 3 - 2 被执行时会调用算数逻辑单元ALU的减法运算器,然后AC为ALU提供工作区,进行程序指令。
![](https://img-blog.csdnimg.cn/img_convert/141a18ecea2b9507f3a5862dc9b0c5a7.png)
![](https://img-blog.csdnimg.cn/img_convert/d32ed9faca52b9a2d36b6f65af3c5cd0.png)
P4 控制器
控制器又由 指令寄存器 IR ,程序计数器 PC,地址寄存器 AR 指令译码器 ID 组成
![](https://img-blog.csdnimg.cn/img_convert/ae08aa4ac3a17d39162f4b087a82cb8a.png)
![](https://img-blog.csdnimg.cn/img_convert/9bd232b1291d94113100c1788095e309.png)
![](https://img-blog.csdnimg.cn/img_convert/e46f7476d0b875f7d9258e6e8ce41210.png)
PC重点
![](https://img-blog.csdnimg.cn/img_convert/37c862b85aba56a86d49293875eb8707.png)
![](https://img-blog.csdnimg.cn/img_convert/22bb6c3ad25d43eb0da2f073b070bcb8.png)
P5 2014上半年第一题
![](https://img-blog.csdnimg.cn/img_convert/f99e7db4fb0834c9e983f75b05045f11.png)
P6 2014下半年第三题
![](https://img-blog.csdnimg.cn/img_convert/6f79ff9b07d82277cba64e6b9d70b170.png)
P7 2017年上半年第一题
![](https://img-blog.csdnimg.cn/img_convert/ea4ebfa8042796b7478793182830afa3.png)
P8 2009年下半年第一题
![](https://img-blog.csdnimg.cn/img_convert/144b1d06a597e7b3152d4fb05bc0ec68.png)
P9 2010年上半年第五题
![](https://img-blog.csdnimg.cn/img_convert/d3abb9d91a140b49a46d485435692cfd.png)
P10 2011年下半年第五题
![](https://img-blog.csdnimg.cn/img_convert/624922f57fdd4d171a1b10ead6bf6a68.png)
P11 2011年下半年第六题
![](https://img-blog.csdnimg.cn/img_convert/138d94915dcc439e215a7695f89b2a84.png)
P12 2012年下半年第一题
![](https://img-blog.csdnimg.cn/img_convert/e058776aa027a899e2c553a44d9052bd.png)
P13 2019年上半年第一提
![](https://img-blog.csdnimg.cn/img_convert/1faef8048bc33303cf63902f29966951.png)
P14 2010年上半年第一题
![](https://img-blog.csdnimg.cn/img_convert/8975e0470fa05548eff3b492d53e0031.png)
P15 2011年上半年第一题
![](https://img-blog.csdnimg.cn/img_convert/0ed84c0059cde5a1b4a5a37ce3167e99.png)
P16 2016下半年第二题
![](https://img-blog.csdnimg.cn/img_convert/b369db84171b16b2dbeef139004891d4.png)
P17 2018下半年第一题
![](https://img-blog.csdnimg.cn/img_convert/5e8c6f3d64f4824afa0cee7cdb6eecbb.png)
P18 2020年下半年第二题
![](https://img-blog.csdnimg.cn/img_convert/3718f9fefcd36a413ea681579837b24a.png)
P19 2021年上半年第一题
![](https://img-blog.csdnimg.cn/img_convert/1095f19ad77cd2183a614ebb9b4eae6a.png)