First page Back Continue Last page Overview Graphics

Assembler: Operators and Expressions


Notes:

These operators can be used to facilitate documentation. Examples:

BIT0: EQU 1
BIT1: EQU 1<<1
BIT2: EQU 1<<2
ldaa #BIT2
ldaa# ~BIT2

ControlGain: equ 2
ControlOffset: equ 5
ldaa #ControlGain*ControlOffset

;go to the next byte specified by a label
;only addition and subtraction work with relocatable labels.
ldaa #MyData+1