Chapter 8 Writing Source Statements
Expressions 143
For + (addition) operator
For - (subtraction) operator
For *, /, %, <<, >>, &, ^ , | operators
NOTE: The expressions writing in directive coding instructions and assembler control
instruction must result in absolute attributes(ABS).
+ (addition)
Operand 2
UND ABS REL EXT
Operand 1
UND
UND UND UND UND
ABS
UND ABS REL EXT
REL
UND REL REL EXT
EXT
UND EXT EXT EXT
operand1 - operand2
-(SUBTRACTION) Operand 2
UND ABS REL EXT
Operand 1
UND
UND UND UND UND
ABS
UND ABS REL EXT
REL
UND REL REL EXT
EXT
UND EXT EXT EXT
operand1 operator operand2
*, /, %, <<, >>, &, ^, | Operand 2
UND ABS REL EXT
Operand 1
UND
UND UND UND UND
ABS
UND ABS REL EXT
REL
UND REL REL EXT
EXT
UND EXT EXT EXT