本文详细、直观的介绍了ARM指令执行条件汇编 ARM 汇编指令条件执行详解
ALU 状态标志
CPSR 寄存器包含下面的 ALU 状态标志:
The CPSR contains the following ALU status flag:
N Set when the result of the operation was Negative.
Z Set when the result of the operation was Zeto.
C Set when the operation resulted in a Carry.
V Set when the operation caused Overflow.
Q ARM architecture v5E only.
执行条件
N,Z,C,V 相关的条件码后缀如下表所列:
Condition Code Summary
Code Suffix Flags Meaning
0000 EQ Z set equal (= =)
0001 NE Z clear not equal (! =)
0010 CS/HS C set unsigned higher or same (>=)unsigned
0011 CC/LO C clear unsigned lower (
0100 MI N set negative
0101 P……