Addition and subtraction operators (binary)

The addition and subtraction operators are + and -, respectively.

Syntax
  Addition:    
  <operand> + <operand>   
  Subtraction: 
  <operand> - <operand>  
Description

The + operator adds two operands, whereas the - operator subtracts them. The operands can be any expression evaluating to an absolute or relocatable expression.

Addition between two relocatable operands is not allowed.

Example

See the following listing for an example of addition and subtraction operators.

Listing: Addition and subtraction operators

$A3216 + $42 ; Addition of two absolute operands (= $A3258)
labelB - $10 ; Subtraction with value of `labelB'