BASIC stamp manual v2.2

GET – BASIC Stamp Command Reference
Page 204 BASIC Stamp Syntax and Reference Manual 2.2 www.parallax.com
temp VAR Byte
GET 25, temp ' retrieve byte from location 25
DEBUG DEC temp
When using the PBASIC 2.5 directive, multiple sequential variables may
be read from the Scratch Pad RAM, starting at Location, and the WORD
modifier may be specified to retrieve 16-bit values.
' {$PBASIC 2.5}
temp VAR Byte
temp2 VAR Word
GET 25, temp, Word temp2 ' retrieve byte from location 25
' and word from locations 26 and 27
DEBUG DEC temp, CR
DEBUG DEC temp2
The low nibble of location 63 (BS2e and BS2sx) and location 127 (BS2p,
BS2pe, and BS2px) is a special, read-only location that always contains the
number of the currently running program slot. On the BS2p, BS2pe, and
BS2px, the high nibble of location 127 also contains the current program
slot that will be used for the READ and WRITE commands. See the demo
program below for an example of use.
Table 5.28 shows the layout of all SPRAM registers.