BS1 "SYMBOL" Command and Syntax
Borgel
Posts: 23
I was digging through the "Basic Stamp Manual v.2.2" looking for some information on coding for the BS1, and I came accross something I can't identify. In all the sample BS1 source code, for variable declarations it uses the command "symbol."
"symbol" is not in the Basic Stamp Manule and I dont have any clue what the syntax is. Can somebody help?
Borgel
"symbol" is not in the Basic Stamp Manule and I dont have any clue what the syntax is. Can somebody help?
Borgel
Comments
The SYMBOL command is in both the PBASIC Stamp Manual and the Help File as well. You can find it in the section named "Memory Organization and Variables" in either location. All of the appropriate BS-2 commands involving variables and constants can be found there as well.
The syntax is:
BS-I SYMBOL name = registername
BS-II name VAR vartype
Where name is the name by which you will refer to the variable, RegisterName is the "fixed" name for the register and VarType indicates the type (Bit, Nib, Byte, or Word) of storage for the variable. NOTE: The top example is for the BS1 and the bottom example is for BS2-series Stamps
Regards,
Bruce Bates
Ill go and dig it up in the manule.
Borgel