Specifications
BASIC Stamp I and Stamp II Conversions
Page 408 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
LET
BASIC STAMP I
{LET} variable = {-} value ?? value {?? value...}
• VARIABLE is a bit, byte or word variable.
• VALUE is a constant or a bit, byte or word variable.
• ?? is +,-,*,**,/,//,MIN,MAX,&,1,^,&/,|/,^/.
BASIC STAMP II
variable = {?} value ?? value {?? {?} value}
• VARIABLE is a bit, nibble, byte or word variable.
• ? is SQR, ABS, ~, -, DCD, NCD, COS, SIN.
• VALUE is a constant or a bit, nibble, byte or word variable.
• ?? is +,-,*,**,*/,/,//,MIN,MAX,&,|,^,DIG,<<,>>,REV.
• Parentheses may be used to modify the order of expression
evaluation.
CONVERSION: BS1 R BS2
1.Remove the LET command. This is not allowed in the Stamp II.
• VARIABLE and VALUE may be nibble variables for efficiency.
• The optional unary operator {-} may now also include SQR, ABS,
~, DCD, NCD, COS and SIN.
• The binary operators can now include */, DIG, <<, >> and REV.
Example:
BS1: LET b0 = -10 + 16
BS2: Result = -10 + 16
CONVERSION: BS1 Q BS2
1.Remove any unary operator other than minus (-) and modify the
equation as appropriate, if possible.










