7.27 Operator precedence

armasm includes an extensive set of operators for use in expressions. It evaluates them using a strict order of precedence.

Many of the operators resemble their counterparts in high-level languages such as C.
armasm evaluates operators in the following order:
  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.
Related concepts
7.19 Unary operators
7.20 Binary operators
7.28 Difference between operator precedence in assembly language and C
Related reference
7.21 Multiplicative operators
7.22 String manipulation operators
7.23 Shift operators
7.24 Addition, subtraction, and logical operators
7.25 Relational operators
7.26 Boolean operators
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.