At compile time, compiles the numeric data following it into the colon definition. At run-time, DATA pushes the address of the data, and item count (in cells) to the stack, and continues execution with the word immediately following the data list.
The first data parameter should be the number of data items in the list. At run-time, DATA will push the address of the first data item (100) and the count (5) to the stack and continue execution from the first word following the data list. DATA should only be used inside a colon definition.
Note: Care should be taken when used on the command line. When used on the command line, a line of data should be no longer than 80 characters. This limitation does apply when compiling from blocks.
Note: a considerably enhanced version of DATA is available on the tools disk. Usage Information and source code is given here. It is suggested that where possible, this new enhanced version is used.
|