BASIC stamp manual v2.2
Using the BASIC Stamp Editor
Page 68 • BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com
Advanced Compilation Techniques
For BS2e, BS2sx, BS2p, BS2pe and BS2px modules, each editor page can be
a separate project, or part of a single project. A project is a set of up to
eight files that should all be downloaded to the BASIC Stamp for a single
application. Each of the files within the project is downloaded into a
separate "program slot". Only the BASIC Stamp 2e, 2sx, 2p, 2pe, and 2px
modules support multi-file projects.
For BASIC Stamp projects (consisting of multiple programs), the $STAMP
directive has an option to specify additional filenames. The syntax below
demonstrates this form of the $STAMP directive:
' { $STAMP BS2e, file2, file3, …, file8 }
Use this form of the $STAMP directive if a project, consisting of multiple
files, is desired. This form of the directive must be entered only into the
first program (to be downloaded into program slot 0). The file2, file3, etc.
items should be the actual name (and optionally the path) of the other files
in the project. File2 refers to the program that should be downloaded into
program slot 1, file3 is the program that should be downloaded into
program slot 2, etc. If no path is given, the filename is given the path of
program 0 when loading them into the editor.
Up to seven filenames can be included, bringing the total to eight files in
the project all together. Upon loading, tokenizing, running or viewing
program 0 in the Memory Map, the editor will read the $STAMP directive,
determine if the indicated files exist, will load them if necessary and
change their captions to indicate the project they belong to and their
associated program number. After the directive is tokenized properly,
and all associated files are labeled properly, tokenizing, running or
viewing any program in the Memory Map will result in that program’s
entire project being tokenized, downloaded or viewed.
When program #0 of a multi-file project is opened from diskette, the entire
project will be loaded (all referenced files) as well. When a file that is part
of a multi-file project is closed, the entire project (all the associated files)
will be closed as well.
INTRODUCTION TO BASIC STAMP
PROJECTS.
U
SING THE $STAMP DIRECTIVE TO
DEFINE MULTI
-FILE PROJECTS.