当前位置:网站首页>registers (assembly language)
registers (assembly language)
2022-07-31 00:15:00 【one question per day】
Register Concept
8086CPU has 14 registers, their names are:
AX,BX,CX,DX,SI,DI,SP,BP,IP,CS,SS,DS
General Purpose Registers
All registers of the 8086CPU are 16-bit and can store two bytes.AX, BX, CX, DX are usually used to store general data and are called general-purpose registers.
8086CPU method to give physical address
8086 has a 20-bit address bus, which can transmit 20-bit addresses, addressability is 1M.
8086internal 16-bit structure, he can only transmit 16-bit address, but the addressing capability is only 64k.
So physical address = segment address * 16 + offset address.
Note:
1. Segment address * 16 must be a multiple of 16, so the starting address of a segment must also be a multiple of 16.
2. The offset address is 16 bits, and the addressing capability of the 16-bit address is 64K, so the maximum length of a segment is 64K.
Segment Register
The segment register is to provide the segment address.The 8086CPU has 4 segment registers: CS,DS,SS,ES.Among them CS and IP are the most critical registers.
CS: Code register.
IP: Instruction Pointer Register.
If you want to modify CS and IP at the same time, use the following code:
jmp segment address: offset address.
If you want to modify only the IP content, use the following code:
jmp a legal register.
边栏推荐
- Shell编程条件语句 test命令 整数值,字符串比较 逻辑测试 文件测试
- 二叉查找树的定义,查找,插入,删除
- 从笔试包装类型的11个常见判断是否相等的例子理解:包装类型、自动装箱与拆箱的原理、装箱拆箱的发生时机、包装类型的常量池技术
- Machine Learning 1-Regression Model (2)
- HCIP第十六天笔记
- MPI简谈
- The performance management method OKR is used by all companies
- Installation considerations for pytorch
- Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
- [Meng Xin problem solving] Delete the Nth node from the bottom of the linked list
猜你喜欢
随机推荐
firewalld
Chevrolet Trailblazer, the first choice for safety and warmth for your family travel
How to adjust Chinese in joiplay simulator
从两个易错的笔试题深入理解自增运算符
借助深度估计的点云场景重建
How to use joiplay emulator
Mysql体系化之JOIN运算实例分析
在微服务中使用事件溯源的六大原因 - Herath
WebServer process explanation (registration module)
Ukraine's foreign ministry: wu was restored to complete the export of food security
ABC 261 F - Sorting Color Balls(逆序对)
DATA AI Summit 2022提及到的对 aggregate 的优化
[动态规划] 0-1背包问题和完全背包问题
一款好用的接口测试工具——Postman
How to import game archives in joiplay emulator
Soft Exam Summary
Gabor滤波器学习笔记
align-content、justify-content、align-items三个属性的作用和效果
46.
怎么开通代付通道接口?








