标志寄存器及汇编指令英文对照
标志寄存器及汇编指令英文对照
1 标志寄存器
序号 | 标志位 | 英文 | 中文 |
---|---|---|---|
1 | CF | Carry Flag | 进位标志 |
2 | PF | Parity Flag | 奇偶标志 |
3 | AF | Auxiliary Carry Flag | 辅助进位标志 |
4 | ZF | Zero Flag | 零标志 |
5 | SF | Sign Flag | 符号标志 |
6 | TF | Trap Flag | 陷阱标志 |
7 | IF | Interrupt-enable Flag | 中断允许标志 |
8 | DF | Direction Flag | 方向标志 |
9 | OF | Overflow Flag | 溢出标志 |
- CF:无符号计算在最高位产生了进位或借位时,CF=1;反之,CF=0
- PF:算术逻辑运算的结果中低8位“1”的个数为偶数个时,PF=1;为奇数时,PF=0
- AF:在运算过程中,第四位向第五位有进位或借位时,AF=1;反之,AF=0
- ZF:当运算结果全零时,ZF=1;反之,ZF=0
- SF:当运算结果为正数,即结果的最高位为0时,SF=0;反之,即结果的最高位为1时,SF=1
- TF:当TF=1时,CPU进入单步工作方式;当TF=0时,正常执行程序
- IF:当IF=1时,CPU可以响应外部可屏蔽中断请求;当IF=0时,CPU不响应外部可屏蔽中断请求。但IF对不可屏蔽中断或内部中断没有影响
- DF:当DF=0时,以地址增量的顺序处理数据串;当DF=1时,以地址减量的顺序处理数据串
- OF:带符号数运算结果超出了补码所能表示的范围,OF=1;反之,OF=0。OF=最高位进位与次高位进位的异或
2 汇编指令
助记符 | 英文 |
---|---|
MOV | Move |
XCHG | Exchange |
PUSH | Push |
PUSHF | Push Flags |
POP | Pop |
POPF | Pop Flags |
LEA | Load Effective Address |
LDS | Load pointer using DS |
LES | Load pointer using ES |
IN | In |
OUT | Out |
XLAT | Translate |
LAHF | Load AH from Flags |
SAHF | Store AH into Flags |
ADD | Add |
ADC | Add with Carry |
INC | Increment |
SUB | Subtract |
SBB | Subtract with Borrow |
DEC | Decrement |
NEG | Negate |
CMP | Compare |
MUL | Multiplication |
IMUL | Integer Multiplication |
DIV | Division |
IDIV | Integer Division |
CBW | Convert Byte to Word |
CWD | Convert Word to Double Word |
DAA | Decimal Adjust for Addition |
DAS | Decimal Adjust for Subtraction |
AAA | ASCII Adjust for Addition |
AAS | ASCII Adjust for Subtraction |
AAM | ASCII Adjust for Multiplication |
AAD | ASCII Adjust for Division |
SHL | Shift Logic Left |
SAL | Shift Arithmetic Left |
SHR | Shift Logic Right |
SAR | Shift Arithmetic Right |
ROL | Rotate Left |
ROR | Rotate Right |
RCL | Rotate through CF Left |
RCR | Rotate through CF Right |
AND | And |
OR | Or |
NOT | Not |
XOR | Exclusive OR |
TEST | Test |
MOVSB/MOVSW | Move String Byte/Word |
CMPSB/CMPSW | Compare String Byte/Word |
SCASB/SCASW | Scan String Byte/Word |
LODSB/LODSW | Load String Byte/Word |
STOSB/STOSW | Store String Byte/Word |
JMP | Jump |
JZ/JNZ | Jump on (Not) Zero |
JS/JNS | Jump on (Not) Sign |
JO/JNO | Jump on (Not) Overflow |
JP/JNP | Jump on (Not) Parity |
JC/JNC | Jump on (Not) Carry |
JCXZ | Jump if CX register is Zero |
JA | Jump Above |
JNBE | Jump on Not Below or Equal |
JAE | Jump on Above or Equal |
JNB | Jump on Not Below |
JNC | Jump on Not Carry |
JB | Jump on Below |
JNAE | Jump on Not Above or Equal |
JC | Jump on Carry |
JBE | Jump on Below or Equal |
JNA | Jump on Not Above |
JG | Jump on Greater |
JNLE | Jump on Not Less or Equal |
JGE | Jump on Greater or Equal |
JNL | Jump on Not Less |
JL | Jump on Less |
JNGE | Jump on Not Greater or Equal |
JLE | Jump on Less or Equal |
JNG | Jump on Not Greater |
CALL | Call |
RET | Return |
LOOP | Loop |
CLC | Clear Carry Flag |
STC | Set Carry Flag |
CMC | Complement Carry Flag |
CLD | Clear Direction Flag |
STD | Set Direction Flag |
CLI | Clear Interrupt Flag |
STI | Set Interrupt Flag |
This post is licensed under CC BY 4.0 by the author.