Remote-processing CAMBASIC Manual do Utilizador Página 127

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 208
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 126
Commands - 94
PEEK and POKE
Memory Function and Statement
SYNTAX: n = PEEK(address)
n = PEEK(address,segment)
POKE address, data
POKE address, data, segm ent
PURPOSE: PEEK returns a byte from m emory.
POKE w rites a byte to memory.
REMARK S: The returned value from PEEK w ill be an integer in the range 0 to 255. address is the address in
memory. PEE K is the complement to th e POK E statement.
The first syntax applies to the first 64K of memory (segment 0). F or addresses above segment 0,
use the second syntax. Not all products support segmented memory.
RELATED: DPEEK, DPOKE, PEEK$, POKE$, FPEE K, FP OKE
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
Vista de página 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 207 208

Comentários a estes Manuais

Sem comentários