Remote Processing Coorporation RPC-320 Specifikace Strana 116

  • 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 115
Commands - 86
PEEK and POKE
Memory Function and Statement
SYNTAX: n = PEEK(address)
n = PEEK(address,segment)
POKE address, data
POKE address, data, segment
PURPOSE: PEEK returns a byte from memory.
POKE writes a byte to memory.
REMARKS: The returned value from PEEK will be an integer in the range 0 to 255. address is the address in
memory. PEEK is the complement to the POKE statement.
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$, POKE$, FPEEK, FPOKE
EXAMPLE: 10 A=PEEK(&7000)
10 A=PEEK (&2000,1)
20 POKE &A000, 12, 1
ERROR: <Data negative> – for address, data and segment
<Data > 65,535> – for address
<Data out of range> – if segment > 15
Zobrazit stránku 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 185 186

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

Žádné komentáře