您的位置:首页 > 其它

The condition flags and Condition code suffixes (arm)

2015-09-08 15:16 411 查看
N

Set to 1 when the result of the operation was negative, cleared to 0 otherwise.

Z

Set to 1 when the result of the operation was zero, cleared to 0 otherwise.

C

Set to 1 when the operation resulted in a carry, cleared to 0 otherwise.

V

Set to 1 when the operation caused overflow, cleared to 0 otherwise.

For more information about the APSR see Program Status
Register.

Condition code suffixes

SuffixFlagsMeaning
EQ
Z = 1Equal
NE
Z = 0Not equal
CS or HS
C = 1Higher or same, unsigned
CC or LO
C = 0Lower, unsigned
MI
N = 1Negative
PL
N = 0Positive or zero
VS
V = 1Overflow
VC
V = 0No overflow
HI
C = 1 and Z = 0Higher, unsigned
LS
C = 0 or   Z = 1Lower or same, unsigned
GE
N = VGreater than or equal, signed
LT
N != VLess than, signed
GT
Z = 0 and N = VGreater than, signed
LE
Z = 1 and N != VLess than or equal, signed
AL
Can have any valueAlways. This is the default when no suffix is specified.
来源: <http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/BABEHFEF.html>
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  arm asm flag reg condition