AARM User's Guide

Discontinued

+ Assembler Operator

Arguments
+ operand
operand + operand


Description

The plus sign ('+') is used as the unary plus operator and as the addition operator.

The unary plus operator is used to assign a positive value to the specified operand. This operator does effectively nothing to alter the value of the operand.

The addition operator is used to add the values of two operands which may be absolute or relocatable. The type of the resulting expression is determined by the operand types as shown in the following table:

Operand TypesResulting Expression Type
absolute + absoluteabsolute
absolute + relocatablerelocatable
relocatable + absoluterelocatable
relocatable + relocatableError: Not allowed.

Note

  • As a general rule, relocatable expressions must evaluate to a relocatable symbol plus or minus an optional constant value (displacement).
See Also

-

Example
labx:   MOV     R1, #1234+5678
        MOV     R2, labx+10h