Post

标志寄存器及汇编指令英文对照

标志寄存器及汇编指令英文对照

1 标志寄存器

序号标志位英文中文
1CFCarry Flag进位标志
2PFParity Flag奇偶标志
3AFAuxiliary Carry Flag辅助进位标志
4ZFZero Flag零标志
5SFSign Flag符号标志
6TFTrap Flag陷阱标志
7IFInterrupt-enable Flag中断允许标志
8DFDirection Flag方向标志
9OFOverflow Flag溢出标志
  1. CF:无符号计算在最高位产生了进位或借位时,CF=1;反之,CF=0
  2. PF:算术逻辑运算的结果中低8位“1”的个数为偶数个时,PF=1;为奇数时,PF=0
  3. AF:在运算过程中,第四位向第五位有进位或借位时,AF=1;反之,AF=0
  4. ZF:当运算结果全零时,ZF=1;反之,ZF=0
  5. SF:当运算结果为正数,即结果的最高位为0时,SF=0;反之,即结果的最高位为1时,SF=1
  6. TF:当TF=1时,CPU进入单步工作方式;当TF=0时,正常执行程序
  7. IF:当IF=1时,CPU可以响应外部可屏蔽中断请求;当IF=0时,CPU不响应外部可屏蔽中断请求。但IF对不可屏蔽中断或内部中断没有影响
  8. DF:当DF=0时,以地址增量的顺序处理数据串;当DF=1时,以地址减量的顺序处理数据串
  9. OF:带符号数运算结果超出了补码所能表示的范围,OF=1;反之,OF=0。OF=最高位进位与次高位进位的异或

2 汇编指令

助记符英文
MOVMove
XCHGExchange
PUSHPush
PUSHFPush Flags
POPPop
POPFPop Flags
LEALoad Effective Address
LDSLoad pointer using DS
LESLoad pointer using ES
INIn
OUTOut
XLATTranslate
LAHFLoad AH from Flags
SAHFStore AH into Flags
ADDAdd
ADCAdd with Carry
INCIncrement
SUBSubtract
SBBSubtract with Borrow
DECDecrement
NEGNegate
CMPCompare
MULMultiplication
IMULInteger Multiplication
DIVDivision
IDIVInteger Division
CBWConvert Byte to Word
CWDConvert Word to Double Word
DAADecimal Adjust for Addition
DASDecimal Adjust for Subtraction
AAAASCII Adjust for Addition
AASASCII Adjust for Subtraction
AAMASCII Adjust for Multiplication
AADASCII Adjust for Division
SHLShift Logic Left
SALShift Arithmetic Left
SHRShift Logic Right
SARShift Arithmetic Right
ROLRotate Left
RORRotate Right
RCLRotate through CF Left
RCRRotate through CF Right
ANDAnd
OROr
NOTNot
XORExclusive OR
TESTTest
MOVSB/MOVSWMove String Byte/Word
CMPSB/CMPSWCompare String Byte/Word
SCASB/SCASWScan String Byte/Word
LODSB/LODSWLoad String Byte/Word
STOSB/STOSWStore String Byte/Word
JMPJump
JZ/JNZJump on (Not) Zero
JS/JNSJump on (Not) Sign
JO/JNOJump on (Not) Overflow
JP/JNPJump on (Not) Parity
JC/JNCJump on (Not) Carry
JCXZJump if CX register is Zero
JAJump Above
JNBEJump on Not Below or Equal
JAEJump on Above or Equal
JNBJump on Not Below
JNCJump on Not Carry
JBJump on Below
JNAEJump on Not Above or Equal
JCJump on Carry
JBEJump on Below or Equal
JNAJump on Not Above
JGJump on Greater
JNLEJump on Not Less or Equal
JGEJump on Greater or Equal
JNLJump on Not Less
JLJump on Less
JNGEJump on Not Greater or Equal
JLEJump on Less or Equal
JNGJump on Not Greater
CALLCall
RETReturn
LOOPLoop
CLCClear Carry Flag
STCSet Carry Flag
CMCComplement Carry Flag
CLDClear Direction Flag
STDSet Direction Flag
CLIClear Interrupt Flag
STISet Interrupt Flag
This post is licensed under CC BY 4.0 by the author.