Remote-processing BASIC 52 Uživatelský manuál Strana 104

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 163
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 103
RPBASIC-52 PROGRAMMING GUIDE
2-85
POKEW
Syntax: POKEW segmen t,address,d ata
Where: segment = 0 to 7, specifies the 64K segment
address = 0 to 65535, location in segment to save to
data = 0 to 65535, number to save to RAM
Function: Writes an unsigned 16 bit number to RAM.
Mode: Command, Run
Use: POKE W1,AD,DA
Cards: All
DESCRIPTION
Use POKEW to write 16 bit numbers into RAM. The results of an A-D conversion, for example, can be
saved.
WARNING: RPBASIC-52 does not check the address. It is possible to poke into the program, stack, or
variable areas. Results are unpredictable. Poke into mem ory above MT OP for safest
operation.
See the POKEB command for segment and address information.
RELATED
PEEKW
ERRORS
BAD SYNTAX If W, segmen t, address, or data is missing.
BAD DATA If segment is > 7, address or data > 65535 or negative
EXAMPLES
The following example takes data from the AIN function and saves it to segment 1 of the 128K RAM.
1000 FOR N = 0 TO 7
1010 POKE W1,N*2+100,AIN(N)
1020 NEXT
The next example prints out the data from RAM.
500 FOR N = 0 TO 7
510 PRINT PEEKW(1,100+N*2)
520 NEXT
Zobrazit stránku 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 162 163

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

Žádné komentáře