Specifications

Appendix C
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 383
C
BRANCH
BASIC STAMP I
BRANCH index,(label0, label1,... labeln)
INDEX is a constant or a bit, byte or word variable.
LABEL0..LABELN are valid labels to jump to according to the value
of INDEX.
BASIC STAMP II
BRANCH index,[label0, label1,... labeln]
INDEX is a constant, expression or a bit, nibble, byte or word
variable.
LABEL0..LABELN are valid labels to jump to according to the value
of INDEX.
CONVERSION: BS1 R BS2
1.Change open and close parentheses, “(“ and “)”, to open and close
brackets, “[“ and “]”.
Example:
BS1: BRANCH B0, ( Loop1, Loop2, Finish )
BS2: BRANCH BranchIdx, [ Loop1, Loop2, Finish ]
CONVERSION: BS1 Q BS2
1.Change open and close brackets, “[” and “]”, to open and close
parentheses, “(“ and “)”.
Example:
BS2: BRANCH BranchIdx, [ Loop1, Loop2, Finish ]
BS1: BRANCH B0, ( Loop1, Loop2, Finish )