Program Structure

Expressions

Parenthesized Subexpressions

The constant term of an expression may contain parenthesized subexpressions that alter the order of evaluation from the precedence normally associated with arithmetic operators. For example:

LABEL1-LABEL2+((6765+(2048-1))/2048)*2048

contains a parenthesized subexpression that rounds a value up to a multiple of 2048.

Absolute symbols may be equated to constant terms containing parenthesized subexpressions as in the following sequence:

 

BASE

.EQU

0x200

 

N_EL

.EQU

24

 

SIZE

.EQU

(BASE+4)*N_EL

 

The use of parentheses to group subexpressions may cause ambiguities

NOTE

 

in statements where parenthesized register designators are also

 

expected.

 

 

 

 

 

34

Chapter 2