Remote-processing BASIC 52 Manuale Utente Pagina 19

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 163
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 18
RPBASIC-52 PROGRAMMING GUIDE
1-16
String operation
ASC
CHR
STR
STRING
Strings in RPBASIC-52 are one-dimensional arrays
of characters. Strings are stored as a sequence of
ASCII values terminated with a 0D H (the ASCII
value of a carriage return).
Memory for strings is allocated by the STRING
operator. String varia bles ar e $(0) th rough $(254).
Strings may be any length, lim ited only by available
memory. However, if you wish to assign 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 assigned one character at a time with
the ASC operator or the X BY instruction. Explicit
text assigned to a string must be enclosed in double
quotation marks. The ASC and CHR operators can
evaluate individual characters in a string.
Interrupts
ON COM$
ON COUNT
ONITR
ON KEYPAD
ON LINE
ONTICK
RETI
Other operators
IDLE
Memory Allocation
FREE
LEN
MTOP
Vedere la pagina 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 162 163

Commenti su questo manuale

Nessun commento