Keil Logo Arm Logo

A251 User's Guide

Operators

Operators may be unary (requiring one operand) or binary (requiring two operands). The combination of an operator and its operand(s) is an expression. Parentheses may be used in expressions with multiple operators to specify the order in which operators are evaluated. If no parentheses are used in an expression, operator precedence determines the evaluation order.

Following is the operator precedence table:

Level Operators
1 ( )
2 NOT HIGH LOW
BYTE0 BYTE1 BYTE2 BYTE3
WORD0 WORD2
3 Unary + Unary -
4 * / MOD
5 + -
6 SHL SHR
7 AND OR XOR
8 EQ = NE <> LT < LTE <= GT > GTE >=

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.