EasyManua.ls Logo

Commodore Plus 4 - Input;Output Statements

Commodore Plus 4
464 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...
66
The
BASIC
Language
4.
You
can
use
an
optional
name
for
the
file
on
disk
or
tape.
The
file
name
can
be
any
1
to
16
characters.
If
you
intend
to
call
the
file
by
name,
do
it
now
because
you
will
not
be
able
to
later.
5.
For
disk
files,
include
in
the
quotation
marks
the
optional
type
of
file
following
a
comma.
The
types
are
P
(program
file),
S
(sequential
file),
L
(relative
file),
or
U
(user
file).
The
default
is
sequential
file.
For
more
information,
see
Chapter
6.
6.
For
disk
files,
an
optional
disk
file
mode
(R
for
read,
or
W
for
write)
can
follow
the
file
type
(still
in
quotation
marks
and
separated
from
the
type
by
a
comma).
The
default
is
read.
Examples:
OPEN
4,4
:■
Opens
communication
to
the
printer
so
you
can
print
directly
onto
it.
OPEN
1,1,0/'BOXES''
Opens
a
tape
file
for
reading
from
tape.
OPEN
8,8,15
Opens
the
command
channel
to the
disk
drive.
OPEN
1,8,4,"REC3,S,W"
Opens
a
sequential
file
REC3
on
a
disk
so
you
can
write
data
records
to
the
file.
OPEN
4,4,0
Opens
printer
in
upper
case/graphic
mode.
OPEN
4,4,7
Opens
printer
in
upper/lower
case
mode.
PAINT
Abbr.
pA
PAINT
color
source,
coordinates,
mode
Used
in
any
graphic
drawing
mode
to
make
the
outline
of
a
shape
solid.
The
shape
is
filled
with
color
from
the
starting
point
until
boundaries
are
met
on
all
sides.
See
Chapter
4
for
more
information
on
coordinates
for
PAINT.
Parameter
Values
Default
Color
source
Coordinates
Column
coordinate
High-res
modes
Multicolor
modes
Row
coordinate
Boundary
mode
0-3
0-319
0-159
0-199
Oor
1
1
pixel
cursor
0
1.
The
color
source
indirectly
selects
the
painting
color.
There
are
five
color
sources,
but
color
source
4
(the
border
color)
cannot
be
used
in
drawing
com
mands.
Color
sources
2
and
3
can
be used
only
in
multicolor
modes.
0
screen
background
color
1
foreground
color
(default
value)

Other manuals for Commodore Plus 4

Related product manuals