defADDR Directive
The defADDR
directive directs SPLat/PC to assign a value to a label and reserve a nominated amount of RAM to hold the data associated with that label. It is part of the Automatic RAM Allocation scheme introduced in SPLat/PC V7.15.2 (May2005).
Syntax:
Label defADDR {Value}
Label
is any properly formed label. Value
is an optional numeric constant. If not used Value
defaults to 1. Typically you would specify Value if you intend to access an array of data using indexed addressing.
This will automatically allocate 2x Value
bytes of RAM and assign the address of the first byte to Label
.
This directive is intended for reserving a Suspend/Resume address in multitasking structures.
An error will be raised if SPLat/PC is unable to find enough free RAM.