Remote-processing CAMBASIC Bedienungsanleitung Seite 128

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 208
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 127
Commands - 95
PEEK$ and POKE$
Memory Function and Statement
SYNTAX: x$ = PEEK$(address)
x$ = PEEK$(address, segment)
POKE $ address, X$
POKE$ address, X$, segment
PURPOSE: PEEK$ returns a string from successive memory addresses.
POKE$ w rites a string to memory.
REMARK S: The first syntax applies to the first 64K of memory (segment 0). For addresses above segment 0,
use the second syntax. Not all products support segmented memory.
NOTE: Due to compiler memory allocation, executing PEEK$ in the immediate mode will return an
error 30, < Expected )> error.
RELATED: DPEEK, DPOKE, PEEK, FPEE K, POKE, F POKE
EXAMPLE: 10 A$ = "string"
20 B$ = " stuffer"
30 POKE$ 0,A$,1
40 POKE$ 10,B$,1
50 PRINT PEEK$(0,1);PEEK$(10,1)
RUN
string stuffer
ERROR: < Data negative> for address, data and segment
< Data > 65,535> for address
< String too long> if string > 254 characters
< Data range> if segment > 15
Seitenansicht 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 207 208

Kommentare zu diesen Handbüchern

Keine Kommentare