当前位置:网站首页>cpu/CS and IP
cpu/CS and IP
2022-07-30 13:22:00 【Ruo_Xiao】
I. What is CS and IP
CS and IP are two key registers in the 8086 CPU, they indicate the address of the instruction the CPU is currently reading.
CS: code segment register;
IP : Instruction Pointer Register.
In the 8086 machine, at any time, the CPU executes the content pointed to by CS:IP as an instruction.
Second, the flow chart of CPU reading and executing instructions
The following is the process of reading and executing an instruction by the 8086 CPU: (in the figure below: there is no data line from the control input and output circuit to the controller, I drew it wrong)





Note: Before the CPU reads the content to the memory (the content here is: instruction), it will issue a memory read command through the control bus, "tell" the memory, I want to start reading the content, please (memory) prepareit is good.




After: The CPU will read the instruction from the memory unit 2000:0003 and cycle the above steps in turn.
The following is a dynamic diagram of CPU read instructions.
III. Summary
1. The CPU reads the instruction from the address pointed to by CS : IP, and the read instruction enters the instruction buffer;
2, IP = IP + the length of the instruction read, so as to point to the next instruction;
3. Execute the instruction.Go to step 1 and repeat the process.
Reprint: CS and IP - Knowing
(SAW: Game Over!)
边栏推荐
- How to solve the problem that the page does not display the channel configuration after the EasyNVR is updated to (V5.3.0)?
- How to migrate the device data connected by RTSP of EasyCVR platform to EasyNVR?
- EasyNVS云管理平台功能重构:支持新增用户、修改信息等
- 缓存
- 大手笔!两所“双一流”大学,获75亿元重点支持!
- 【Kaggle:UW-Madison GI Tract Image Segmentation】肠胃分割比赛:赛后复盘+数据再理解
- 初级永磁直线电机双动子电流镜像容错控制
- 腰部外骨骼机器人线性自抗扰控制器参数优化
- shell的理解
- 云主机上的MongoDB被威胁,开启AUTH认证
猜你喜欢
随机推荐
智能指针实现猜想
云主机上的MongoDB被威胁,开启AUTH认证
How to migrate the device data connected by RTSP of EasyCVR platform to EasyNVR?
strlen跟sizeof区别
【语音识别】基于GMM-HMM的语音识别系统
grep时排除指定的文件和目录
剑指 Offer 05. 替换空格
在 Scala 中读取整个文件
ES6 Set与Map是什么,如何使用
curl 执行脚本时传递环境变量与参数
DOM常用方法以及项目
【Kaggle:UW-Madison GI Tract Image Segmentation】肠胃分割比赛:赛后复盘+数据再理解
【软考软件评测师】自动化测试章节下篇
手撕读写锁性能测试
datax enables hana support and dolphinscheduler enables datax tasks
Markdown 3 - 流程图表
CMake library search function does not search LD_LIBRARY_PATH
力扣——11.盛最多水的容器
EasyNVS cloud management platform function reconstruction: support for adding users, modifying information, etc.
漫谈金丝雀部署(Canary Deployment)