Equate

The “equate” pseudo instruction is indicated by the character = (equals sign) written in the code field of an assembler statement. No executable object code is generated by the pseudo instruction. It acts merely to provide the assembler with information to be used subsequently while generating object code.

../../_images/equate-diag.png

Description:

The symbol Sym is assigned the value Exp by the assembler. Whenever the symbol Sym is encountered subsequently by the assembler, this value will be used.

The statements

CZ  =   10
JCN CZ  ADDR

are equivalent to the statement

JCN 10  ADDR

The statements

DAT =   5
    LDM DAT

will load the value 5 into the accumulator