Remote Processing Coorporation RPC-320 Dokumentacja Strona 117

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 186
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 116
Commands - 87
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$ writes a string to memory.
REMARKS: 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.
RELATED: DPEEK, DPOKE, PEEK, FPEEK, POKE, FPOKE
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
Przeglądanie stron 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 185 186

Komentarze do niniejszej Instrukcji

Brak uwag