Remote Processing Coorporation RPC-320 Specifikace Strana 117

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 186
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 185 186

Komentáře k této Příručce

Žádné komentáře