5.9. Expressions and operators

Expressions are combinations of symbols, values, unary and binary operators, and parentheses. There is a strict order of precedence in their evaluation:

  1. Expressions in parentheses are evaluated first.

  2. Operators are applied in precedence order.

  3. Adjacent unary operators are evaluated from right to left.

  4. Binary operators of equal precedence are evaluated from left to right.

The assembler includes an extensive set of operators for use in expressions. Many of the operators resemble their counterparts in high-level languages such as C. See Unary operators and Binary operators.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C