Table 5.6: Special Control
Characters.
T
B
ECHNICAL
ACKGROUND
5: BASIC Stamp Command Reference - DEBUG
received, the Debug Terminal wraps back around to the opposite side of
the screen.
The Clear Right control character clears the characters that appear to the
right of, and on, the cursor's current position. The cursor is not moved by
this action.
The Clear Down control character clears the characters that appear below,
and on, the cursor's current line. The cursor is not moved by this action.
Name
Clear Screen
Home
Move To (x,y)*
Cursor Left*
Cursor Right*
Cursor Up*
Cursor Down*
Bell
Backspace
Tab
Line Feed*
Clear Right*
Clear Down*
Carriage Return
* This control character only works with the Windows version of the editor software.
DEBUG is actually a special case of the SEROUT instruction. It is set for
inverted (RS-232-compatible) serial output through the programming
connector (the SOUT pin) at 9600 baud, no parity, 8 data bits, and 1 stop
bit. For example,
DEBUG "Hello"
is exactly like:
2
SEROUT 16, $4054, ["Hello"]
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 105
Symbol
ASCII
Value
CLS
0
Clear the screen and place cursor at home
position.
HOME
1
Place cursor at home in upper-left corner of
the screen.
2
Move cursor to specified location. Must be
followed by two values (x and then y)
3
Move cursor one character to left.
4
Move cursor one character to right.
5
Move cursor one character up.
6
Move cursor one character down.
BELL
7
Beep the PC speaker.
BKSP
8
Back up cursor to left one space.
TAB
9
Tab to the next column.
10
Move cursor down one line.
11
Clear line contents to the right of cursor.
12
Clear screen contents below cursor.
CR
13
Move cursor to the first column of the next
line (shift any data on the right down to that
line as well)
Description
Need help?
Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?