Everything

( )


Prioritizes the calculation within ( ).

[Function]

Causes an operation in parentheses to be performed prior to operations outside the parentheses.

This operator is used to change the order of precedence of other operators.

If parentheses are nested at multiple levels, the expression in the innermost parentheses will be calculated first.

[Application example]

MOV     A, #(4 + 3) * 2

 

 

Calculations are performed in the order of expressions (1), (2) and the value "14" is returned as a result.

 

If parentheses are not used,

 

Calculations are performed in the order (1), (2) shown above, and the value "10" is returned as a result.

See "Table 5.5 Operator Precedence Levels", for the order of precedence of operators.