Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 19

RPBASIC-52 PROGRAMMING GUIDE
1-16
String operation
ASC
C H R
STR
S T R I N G
Strings in RPBASIC-52 are one-dimensional arrays
of characters. Strings are stored as a sequence of
ASC II values termina ted with a 0D H (the AS CII
value of a carriage return).
M e m o r y f o r s t ri n gs i s a l lo c a te d b y t h e S T R I N G
opera tor. Strin g varia bles ar e $(0) th rough $(254) .
Strings may be any length, lim ited only by ava ilable
mem ory. Howe ver, if you wish to assig n a string to
explicit text in quotes , it may be up to
[72-{number of digits in string identifier}]
characters in length. In other words, $(9) may be 71
characters long, but $(200) may be only 69
characters long. This is due to the BASIC-52
program line length limit of 79 characters. Longer
strings must be a ssigned one c haracter at a tim e with
the ASC operator or the X BY instruc tion. Explicit
text assigned to a s tring must be e nclosed in dou ble
quotation marks. The ASC and CHR operators can
evaluate individual characters in a string.
Interrupts
O N C O M $
O N C O U N T
ONITR
O N K E Y P A D
O N L I N E
O N T I C K
RETI
Other opera tors
IDLE
Memory Allocation
FREE
LEN
M T O P