The condition flags and Condition code suffixes (arm)

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
Suffix Flags Meaning
EQ Z = 1 Equal
NE Z = 0 Not equal
CS or HS C = 1 Higher or same, unsigned
CC or LO C = 0 Lower, unsigned
MI N = 1 Negative
PL N = 0 Positive or zero
VS V = 1 Overflow
VC V = 0 No overflow
HI C = 1 and Z = 0 Higher, unsigned
LS C = 0 or   Z = 1 Lower or same, unsigned
GE N = V Greater than or equal, signed
LT N != V Less than, signed
GT Z = 0 and N = V Greater than, signed
LE Z = 1 and N != V

Less than or equal, signed

AL Can have any value Always. This is the default when no suffix is specified.

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值