SPLat Logo

EQU Directive

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

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