当前位置:网站首页>寄存器(汇编语言)
寄存器(汇编语言)
2022-07-31 00:07:00 【每天一道题】
寄存器概念
8086CPU有14个寄存器,他们的名称为:
AX,BX,CX,DX,SI,DI,SP,BP,IP,CS,SS,DS
通用寄存器
8086CPU所有的寄存器都是16位的,可以存放两个字节。AX,BX,CX,DX通常用来存放一般性数据被称为通用寄存器。
8086CPU给出物理地址的方法
8086有20位地址总线,可传送20位地址,寻址能力为1M。
8086内部为16位结构,他只能传送16位的地址,表现出的寻址能力却只有64k。
因此物理地址 = 段地址 * 16 + 偏移地址。
注:
1.段地址 * 16必然是16的倍数,所以一个段的起始地址也一定是16的倍数。
2.偏移地址为16位,16位地址的寻址能力为64K,所以一个段的长度最大为64K。
段寄存器
段寄存器就是提供段地址的。8086CPU有4个段寄存器:CS,DS,SS,ES。其中CS和IP是最关键的寄存器。
CS:代码寄存器。
IP:指令指针寄存器。
若想同时修改CS,IP的内容则用如下代码:
jmp 段地址:偏移地址。
若想仅修改IP的内容则用如下代码:
jmp 某一合法寄存器。
边栏推荐
- 牛逼的公司都在用的绩效管理法OKR
- Axure轮播图
- How to adjust Chinese in joiplay simulator
- Point Cloud Scene Reconstruction with Depth Estimation
- [Meng Xin problem solving] Delete the Nth node from the bottom of the linked list
- Shell programming conditional statement test command Integer value, string comparison Logical test File test
- 45. [Application of list linked list]
- Game mall table establishment
- what is jira
- joiplay模拟器如何使用
猜你喜欢
随机推荐
雪佛兰开拓者,安全保障温暖你的家庭出行的第一选择
Learn Scope from a Compilation Perspective!
"Wei cup" school more than 2022 cattle summer camp 4 L.B lack Hole, computational geometry
Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
joiplay模拟器如何使用
proemthues 服务发现配置
How to open the payment channel interface?
C# VSCode & Rider引用命名空间快捷键
mysql 中手动设置事务提交
从编译的角度来学作用域!
HCIP Day 15 Notes
HCIP第十五天笔记
IOT跨平台组件设计方案
47. 【Pointers and Arrays】
How to install joiplay emulator rtp
【深入浅出玩转FPGA学习14----------测试用例设计2】
WebServer process explanation (registration module)
What are the efficient open source artifacts of VSCode
MySQL的grant语句
第一节 zadig 入门








