EasyManua.ls Logo

Commodore VIC-20 - Page 374

Commodore VIC-20
404 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
360
The
VIC
20
User
Guide
Example:
OPEN
1,8,2,
"0:
DAT,
SEQ,
READ"
Open logical file 1 on a diskette in drive
O.
Readfrom
sequential file
DAT
OPEN
5,8,3,"1
:NEWFIlE,SEQ,WRITE"
Open logicalfile 5 on a diskette in drive
1.
Write to sequential file
NEWFlLE
OPEN
4,8,4,
"!!1
:
NEWFILE,
SEQ,
WRITE"
Open logical file 4 on diskette drive
1.
POKE
Write to sequential file
NEWFILE
replacing prior contents
The
POKE
statement stores a byte
of
data in a specified memory
location.
Format:
POKE
memadr,byte
A value between 0 and 255, provided by byte,
is
loaded into the memory
location with the address memadr.
Example:
10
POKE
l,A
POKE
32768,ASC("A")-64
PRINT
POKE value
of
variable A into memory
at address 1
POKE
1 (the value
of
ASC
('A
")-64)
into memory at address 32768
The
PRINT
statement displays data; it
is
also used to print to the line
printer.
Format:
{
PRINT}
{'} {'}
?
data;
data... ; data
PRINT
Field
Formats
Numeric fields are displayed using standard numeric representation for
numbers greater
than
0.01
and less
than
or
equal to 999999999. Scientific
notation
is
used for numbers outside
of
this range. Numbers are preceded by
a sign character and are followed by a blank character.

Other manuals for Commodore VIC-20

Related product manuals