Specifications

BASIC Stamp I and Stamp II Conversions
Page 374 • BASIC Stamp Programming Manual 1.8 • Parallax, Inc.
#..# Double periods between numbers indicate that a con-
tiguous range of numbers are allowed for the given
argument. Wherever a range of numbers are shown it
usually indicates the valid range which a command
expects to see. If a number is given which is outside
of this range the Stamp will only use the lowest bits of
the value which correspond to the indicated range. For
example, if the range 0..7 is required (a 3 bit value)
and the number 12 is provided, the Stamp will only
use the lowest 3 bits which would correspond to a
value of 4.
HOW TO USE THIS APPENDIX
This appendix should be used as a reference for converting specific
commands, or other PBASIC entities, from one version of the Stamp to
another. While this document will help to convert most of the pro-
grams available for the Stamp I and Stamp II, some programs may
require logic changes to achieve correct results. The required logic
changes are beyond the scope of this
document.
In an effort to lessen the time spent in performing a code conversion
the following routine should be followed in the order listed for each
program.
1. Review the entire code briefly to familiarize yourself with how it func-
tions and the types of commands and expressions which are used.
2.Consult the RAM SPACE AND REGISTER ALLOCATION
section in this manual and go through the entire program carefully
converting symbols, variables and expressions to the proper format.
3.Go through the code instruction by instruction, consulting the
appropriate section in this document, and convert each one to the
appropriate form.
4.Make any necessary circuit changes as required by the new stamp
code.