SPLat Logo

EQU Directive

NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

EQU Directive

The EQU directive assigns a numeric value to a label.

Syntax:

Label     EQU      Value

Label is any properly formed label. Value must be an integer numeric constant. Value must be in a number range that is legal for a subsequent instruction where Label is used as an argument.

Foo       EQU      35

SPLat/PC will use the numeric value 35 wherever the word "Foo" is used as an instruction argument, hence subsequent to the above instruction

          LoadX    Foo

is equivalent to

          LoadX    35

The advantage of using EQU directives is that a numeric value can be defined once at the start of a program and then be used several times throughout the program. If you subsequently need to change the value, you only need to change the EQU directive and all uses of the value will change automatically.

The full word EQUALS may also be used.

See also #EQU, fEQU, iEQU, oEQU, mEQU