Syntax
SUB
FREAD ( FlashAddr,
Destination, size
)
Destination = arrayname | stringname
size in
bytes
Description -- added version 7.13
FREAD copies data stored in the
Flash memory to the Destination array or string, for size
bytes.
Example
' simple example of write and read
DIM A(512)
DIM B(512)
...
WRITE ($6000, A, 512)
WRITE ($6200, A, 512)
FREAD
($6200, B, 512)
...
WRITE ($6000, A, 0) ' trying to
rewrite this sector, so it requires an erase
WRITE ($6000, A,
512)
...
WRITE ($6000, A,
512) ' as the same block is being written it will
automatically be erased
WRITE ($6000, A, 512)
Differences from other BASICs
- Does not exist in Visual BASIC
-
PBASIC has a similar function
See also