Figure 3.5: Example Editor Title
Bar. Shown with the program ID
(slot #) set to 0
M
M
F
.
EMORY
AP
UNCTION
For BASIC Stamp projects (consisting of multiple programs), the BASIC
Stamp DOS Editor must be used to individually load and download each
of the files into the appropriate slot. Keep in mind that the DOS editor can
only load up one source code file at a time. NOTE: The Windows version
does not have this limitation.
Pressing ALT+# (where # is a number from 0 to 7) will change the ID
(shown on the title bar; see Figure 3.5) of the currently visible source code
in the editor. This ID is not saved with the program and must be set and
verified manually each time it is loaded from disk and before each
download.
The sequence of keystrokes to load and download two programs into two
separate program slots would consist of the following:
1.
ALT+L loads a program into the editor.
2.
ALT+0 sets the editor to program ID 0.
3.
ALT+R downloads this program into program slot 0 of the BASIC
Stamp's EEPROM.
4.
ALT+L loads another program into the editor.
5.
ALT+1 sets the editor to program ID 1.
6.
ALT+R downloads this program into program slot 1 of the BASIC
Stamp's EEPROM.
The shortcut key ALT+R downloads only one program at a time. Note that
you must load each program separately.
The BASIC Stamp DOS Editors for the BS2, BS2e, BS2sx and BS2p, also
feature a Memory Map (not shown) that displays the layout of the current
PBASIC program, DATA usage and RAM register usage. Type ALT+M to
activate this window.
When you activate the Memory Map, the editor will check your program
for syntax errors and, if the program's syntax is OK, will present you with
a color-coded map of the RAM. You'll be able to tell at a glance how much
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 43
3: Using the BASIC Stamp Editor
Need help?
Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?