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

  • 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 127
RPBASIC-52 PROGRAMMING GUIDE
2-109
ST@
Syntax: ST@ expr
Where: expr = 0 to 65535
Function: Takes a floating-point number from the argument stack and stores it to data mem ory at the address.
Mode: Command, run
Use: PUSH B : ST@7E00
Cards: All
DESCRIPTION
ST@ is used in conjunction with PUSH, POP, and LD@ . Use these commands to save and retrieve floating
point numbers to program RAM.
NOTE: LD@ and ST@ cannot use extended RA M. Only se gment 0 R AM (used for running B asic
programs) is used. Use PEEK and POKE com mands to access this memory.
WARNING: When 128 K and 512K RAM are installed, all of m emo ry is cleared on pow er up and rese t.
Do not use LD@ or ST@ to save floating point numbers in segment 0. Use POKE and
PEEK type comm ands instead.
32K RAM systems have address 7E00H set as M TOP. T his location up to 7FFFH m ay be used to store
variables.
expr is the ad dress in RAM of w here a number is sto red.
Each floating-poin t number requires six bytes of memo ry. expr in the ST@ and LD@ instructions specify the
high address. A number is stored at locations expr through expr-6.
RELATED
LD@, PUSH, POP
ERROR
expr location should be above MTOP. Otherwise the data may be overwritten.
EXAMPLE
100 A=AIN(0)*.234
110 PUSH A
120 ST@7F00H
.
.
300 LD@7F00H
310 POP B
320 PRINT "Analog value retrieved=",B
>run
Analog value retrieved=",B
Zobrazit stránku 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 162 163

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

Žádné komentáře