当前位置:网站首页>cpu / CS 和 IP
cpu / CS 和 IP
2022-07-30 12:56:00 【Ruo_Xiao】
一、什么是 CS 和 IP
CS 和 IP 是 8086 CPU 中两个关键的寄存器,它们指示了 CPU 当前要读取指令的地址。
CS:代码段寄存器;
IP : 指令指针寄存器。
在 8086 机中,任意时刻,CPU 将 CS:IP 指向的内容当作指令来执行。
二、CPU 读取、执行指令的流程图
下面是 8086 CPU 读取、执行一条指令的过程:(下面图中:控制输入输出电路到控制器不存在数据线,我画错啦)





注:在 CPU 向内存读取内容之前(这里的内容是:指令),会通过控制总线发出内存读取命令,“告诉”内存,我要开始读内容了,请你(内存)准备好。




之后:CPU 将会从 内存单元 2000:0003 读取指令,依次循环上面的步骤。
下面是一张 CPU 读取指令的动态图。

三、总结
1、CPU 从 CS : IP 指向的地址读取指令,读取的指令进入到指令缓冲器中;
2、IP = IP + 所读取的指令长度,从而指向下一条指令;
3、执行指令。转到步骤 1 ,重复这个过程。
转载:CS和IP - 知乎
(SAW:Game Over!)
边栏推荐
- 如何把Excel表格显示到邮件正文里?
- Why is Prometheus a monitoring artifact sufficient to replace Zabbix?
- dolphinscheduler单机化改造
- How to solve the problem that the page does not display the channel configuration after the EasyNVR is updated to (V5.3.0)?
- 监控界的最强王者,没有之一!
- Beijing, Shanghai and Guangzhou offline events丨The most unmissable technology gatherings at the end of the year are all gathered
- [ASP.NET Core] Dependency Injection for Option Classes
- js 构造函数 return 非空对象,其实例化的对象在原型上的差异
- Execution order of select, from, join, on where groupby, etc. in MySQL
- EasyNVS cloud management platform function reconstruction: support for adding users, modifying information, etc.
猜你喜欢

for循环的3个表达式执行顺序

【Kaggle比赛常用trick】K折交叉验证、TTA

MySQL【多表查询】

Yilian: Activating the Value Potential of Data Elements and Unleashing the Innovation Dividend of SAS SSD

Beijing, Shanghai and Guangzhou offline events丨The most unmissable technology gatherings at the end of the year are all gathered

Go 事,Gopher 要学的数字类型,变量,常量,运算符 ,第2篇

Raja Koduri澄清Arc GPU跳票传闻 AXG年底前新推四条产品线

ENVI图像处理(6):NDVI和植被指数

How to display an Excel table in the body of an email?

腾讯称电竞人才缺口200万;华为鸿蒙3.0正式发布;乐视推行每周工作4天半?...丨黑马头条...
随机推荐
常见的云计算安全问题以及如何解决
dolphinscheduler单机化改造
[PostgreSQL] - Storage structure and cache shared_buffers
Yilian: Activating the Value Potential of Data Elements and Unleashing the Innovation Dividend of SAS SSD
13-GuliMall Basics Summary
手撕读写锁性能测试
How to migrate the device data connected by RTSP of EasyCVR platform to EasyNVR?
私有化部署的即时通讯平台,为企业移动业务安全保驾护航
一文读懂Elephant Swap,为何为ePLATO带来如此高的溢价?
Smart pointer implementation conjecture
R语言时间序列数据算术运算:使用log函数将时间序列数据的数值对数化(平方、开平方、指数化等函数类似使用)
Using Baidu EasyDL to realize the recognition of the chef's hat of the bright kitchen
dolphinscheduler添加hana支持
如何把Excel表格显示到邮件正文里?
[Go]四、模块和包、流程控制、结构体
These critical programs are missing or too old: ma
ES6 Set与Map是什么,如何使用
dolphinscheduler simple task definition and complex cross-node parameter transfer
What are the hard-core upgrades and applications that cannot be missed in Greenplum 6.0?
matlab画图,仅显示部分图例