Specifications
Commands - 47
FPEEK and FPOKE
Memory Function and Statement
SYNTAX: a = FPEEK(address)
a = FPEEK(address,segment)
FPOKE address, data
FPOKE address, data, segment
PURPOSE: FPEEK returns a floating point number previously stored in memory.
FPOKE writes a floating point number to memory.
REMARKS: This function can be used to write and retrieve data stored in memory. This is very useful in data
logging and process data storage and retrieval.
The first syntax applies to the first 64K of memory (segment 0). For addresses above segment 0, use
the second syntax. Not all cards support segmented memory.
FPEEK and FPOKE are the fastest way to write and retrieve data from memory.
RELATED: DPEEK, DPOKE, PEEK, PEEK$, POKE, POKE$
EXAMPLE: 10 FPOKE &A000,1.25
20 A=FPEEK(&A000)
10 D=FPEEK(200,1)
ERROR: <Data > 65,535> – address, data and segment
<Data negative> – for address
<Data out of range> – if segment > 15