Parallax BASIC Stamp II Manual page 31

Table of Contents

Advertisement

ISHEX
ISHEX1-ISHEX4 value
BIN
BIN1-BIN4
SBIN
SBIN1-SBIN16
IBIN
IBIN1-IBIN16
ISBIN
ISBIN1-ISBIN16 value
REP cannot be followed by a '?', but ASC needs one.
DEBUG statements can contain many strings and numbers, separated
by commas. In addition, there are several special control characters
which are interpreted by the PC:
Name
Value
CLS
HOME
BELL
BKSP
TAB
CR
Example program using DEBUG:
count var
loop1: debug cls, bell
loop2: debug sdec? sin count
count = count + 1
if count <> 0 then loop2
pause 1000
goto loop1
BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 31
BASIC Stamp II
value
value
value
value
value
value
value
value
Effect
0
Clears the screen and homes the cursor
1
Homes the cursor
7
Beep the PC speaker
8
Backspace - backs up the cursor
9
Advances to the next 8th column
13
Carriage return - down to next line
byte
Print value in signed hex w/'$'
Print value in signed hex w/'$' - 1-4 digits
Print value in binary
Print value in binary - 1-4 digits
Print value in signed binary
Print value in signed binary - 1-4 digits
Print value in binary w/'%'
Print value in binary w/'%' - 1-4 digits
Print value in signed binary w/'%'
Print value in signed binary w/'%' -1-4 digits
'Define a byte variable called count
'Clear the screen and beep the speaker
'Show the signed-decimal sine of count
'Increment count
'Loop until count rolls over
'Pause for 1 second
'Repeat the program

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp II and is the answer not in the manual?

Table of Contents