defFLOAT Directive
The defFLOAT
directive directs SPLat/PC to create a floating point variable and reserve a nominated amount of RAM to hold its data. The variable will be initialised to 0 at power on.
Syntax:
Label defFLOAT {NumberOfFloats}
Where:
- Label is the name of the variable
- NumberOfFloats is optional and may be used to specify how many floats should be reserved for the variable. It defaults to 1. Reserving more than one is useful for making a buffer or an array of floats.
Be aware a float occupies 4 bytes of RAM, so only use them when you have to as RAM space is limited.
An error will be raised if SPLat/PC is unable to find enough free RAM.