keil MDK汇编关系运算符

来源:互联网 发布:金华比奇网络充值诈骗 编辑:程序博客网 时间:2024/05/22 15:50

Relational operators

7.25 Relational operators

Relational operators act on two operands of the same type to produce a logical value.

The operands can be one of:
  • Numeric.
  • PC-relative.
  • Register-relative.
  • Strings.
Strings are sorted using ASCII ordering. String A is less than string B if it is a leading substring of string B, or if the left-most character in which the two strings differ is less in string A than in string B.
Arithmetic values are unsigned, so the value of 0>-1 is {FALSE}.
The following table shows the relational operators:

Table 7-7 Relational operators

Operator
Alias
Usage
Explanation
=
==
A=B
A equal to B
>
 
A>B
A greater than B
>=
 
A>=B
A greater than or equal to B
<
 
A<B
A less than B
<=
 
A<=B
A less than or equal to B
/=
<> !=
A/=B
A not equal to B
Related concepts
7.20 Binary operators
0 0
原创粉丝点击