SPLat Logo

fEQU Directive

NOTICE: We are updating our website. For product enquiries and orders please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

fEQU Directive

The fEQU directive assigns a floating point value to a label.

Syntax:

Label     fEQU      Value

Label is any properly formed label. Value must be an floating point numeric constant. Example

fPi       fEQU      3.1415926

SPLat/PC will use the numeric value 3.1415926 wherever the word "fPi" is used as an argument in a floating point instruction, hence subsequent to the above instruction

          fLoadW    Pi

is equivalent to

 fLoadW    3.1415926

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