PUT location,data,data,WORD wordvariable...
Location - is a variable/constant specifying a scratchpad address. Valid values are
|0 to 127
||for X1 parts
|0 to 127
||for 20X2 parts
|0 to 1023
||for all other X2 parts
Data - is a variable/constant which provides the data byte to be written. To use a word variable the keyword WORD must be used before the wordvariable.
Write data into scratchpad location.
The function of the put/get commands is store temporary byte data in the microcontroller's scratchpad memory. This allows the general purpose variables (b0, b1, etc.) to be re-used in calculations. Put and get have no effect on the scratchpad pointer and so the address next used by the indirect pointer (ptr) will not change during these commands.
When word variables are used (with the keyword WORD) the two bytes of the word are saved/retrieved in a little endian manner (ie low byte at address, high byte at address + 1)