当前位置:网站首页>Internal register type
Internal register type
2022-06-13 11:58:00 【Wind chaser 0x8ffd98a8】
Internal register type
contain 14 individual 16 Bit register , According to the function, it can be divided into 3 class :
8 General registers ;4 Segment registers ;2 Control registers .
1 General registers
① Data register (AX,BX,CX,DX);
8088/8086 contain 4 individual 16 Bit data register , It can also be divided into 8 individual 8 Bit register , namely :
0b32f2906c990b4e502080d89e8a64d7.png
Idioms specific to data registers :
AX: accumulator , all I/O All instructions passed AX Transfer information with the interface , The results of intermediate operations are mostly placed in AX in ;
BX: Base register , Used to store base addresses in indirect addressing ;
CX: Count register , Used to store count values in loop or string operation instructions ;
DX: Data register , In indirectly addressed I/O Store... In the instruction I/O Port address ; stay 32 Bit multiplication and division , Store high 16 digit .
② Address register (SP,BP);
SP: Stack pointer register , Its content is the offset address of the top of the stack ;
BP: Base pointer register , It is often used to store the offset address of memory unit when accessing memory .
remarks :BX And BP The difference in application , As a general register , Both can be used to store data ; Used as a base register BX Indicates that the data sought is in the data segment ; use BP Indicates that the data is in the stack segment .
③ Index register (SI,DI).
SI: Original index register
DI: Target index register
Index register is often used in instructions to store the address of data in memory .
2 Control register
9ad25a0df7c2353255fb4aec35a3eb03.png
① Status flags
CF(carry flag): Carry flag bit , Add and subtract , There is progress at the highest level / Borrowing rule CF=1
PF(parity flag): Parity flag bit , The low of the result of the calculation 8 In a “1” When the number of is even ,PF=1
AF(auxiliary carry flag): Auxiliary carry flag bit , Addition and subtraction operation , if bit3 towards bit4 With borrow and borrow spaces , be AF=1
ZF(zero flag): Zero flag bit , When the operation result is zero ,ZF=1
SF(sign flag): Symbol sign bit , When the highest bit of the operation result is 1 when ,SF=1
OF(overflow flag): overflow flag , When the result of an arithmetic operation exceeds the expressible range of a signed number ,OF=1.
Status flags Example :
c2d1fd4faa887c65bc7e13333451fe30.png
② Control flag bit
TF(trap flag): Trap flag bit , Also called tracking flag bit ,TF=1 when , send CPU In the working mode of single step instruction
IF(interrupt flag): Interrupt allow flag bit ,IF=1 send CPU Can respond to maskable interrupt requests .
DF(direction flag): Direction sign bit , Determine the direction of operation during data string operation .
3 Segment register
CS: Code segment register , The base address of the code segment .
DS: Segment register , The segment base address where the data segment is stored .
ES: Additional segment register , The segment base address where the additional segment is stored .
SS: Stack segment register , The segment base address where the stack segment is stored .
The value of the segment register indicates the location of the response logical segment in memory .
Followed by – Memory addressing
————————————————
Copyright notice : This paper is about CSDN Blogger 「HevBob」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/weixin_32762235/article/details/113709082
边栏推荐
- [tcapulusdb knowledge base] Introduction to tcapulusdb general documents
- web开发项目,web单页开发
- 全网最全,含面试题+答案
- How to open an account for your own stock trading? Is it safe and reliable?
- break algorithm---dynamic planning(dp-arr)
- camunda如何使用script脚本节点
- web開發項目,web單頁開發
- [tcapulusdb knowledge base] tcapulusdb Model Management Introduction
- 基于STM32F103——DS1302日期时间+串口打印
- Tamigou equity project sharing: transfer of 1637900 shares of Beijing Huadahua New Technology Co., Ltd
猜你喜欢

论文翻译 | PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
![[tcapulusdb knowledge base] Introduction to tmonitor background one click installation (I)](/img/c7/18f3fe9626d2bac32fab7ca0c6463d.png)
[tcapulusdb knowledge base] Introduction to tmonitor background one click installation (I)

Kubernetes问题整理

复习指南,学生党必看

【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(三)

基於STM32F103+AS608指紋模塊+4X4矩陣按鍵+SIM900A發短信——智能門禁卡系統

(一)爬取Best Sellers的所有分类信息:爬取流程
![[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)](/img/46/e4a85bffa4b135fcd9a8923e10f69f.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)

Lucene从入门到实战

SMS sending + serial port printing based on stm32f103-sim900a
随机推荐
Details of fitfi sports money making chain game system development mode
Lightweight real-time semantic segmentation: eNet & erfnet
web开发项目,web单页开发
Product story | YuQue drawing board you don't know
[tcapulusdb knowledge base] Introduction to new models of tcapulusdb
[tcapulusdb knowledge base] tcapulusdb doc acceptance - table creation approval introduction
web开发视频教程,web开发教学
89C51 single chip microcomputer driving LCD based on dream
[tcapulusdb knowledge base] tcapulusdb doc acceptance - Introduction to creating game area
Text error correction -- crisp model
2022.2:EyeshotPro EyeshotUltimate EyeshotFem
(幼升小信息-03)批量模板制作 幼儿基本信息收集文件夹(包含PDF、Word、证件文件夹)
[benefits] in minutes
[tcapulusdb knowledge base] Introduction to tcapulusdb general documents
智能客服系统框架rasa
[tcapulusdb knowledge base] tcapulusdb doc acceptance - create business introduction
数据库连接数设置多少合适?
秒云与趋动科技联合发布容器云平台与GPU资源池化整体解决方案
基于STM32F103——AS608指纹模块+串口打印
全网最全,含面试题+答案