SPLat Logo

fEQU 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

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.