EasyManua.ls Logo

Commodore 128D - Page 295

Commodore 128D
427 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...
n
PRINT
memory.
This
can
be
a
value
from
0
to
65535.
The
second
parameter
is
a
value
from 0
to
255,
to
be
placed
in
the
location.
The
POKE
address
depends
on
the
BANK
number.
See
BANK
in
this
Encyclo
pedia
for
the
appropriate
BANK
configurations.
EXAMPLE:
10
POKE
53280,1
Changes
VIC
border
color
NOTE:
PEEK,
a
function
related
to
POKE,
returns
the
contents
of
the
specified
memory
location,
and
is
listed
under
FUNCTIONS.
PEEK
pokes
to
a
ROM
location
"bleed
through"
toRAM
underneath.
POKE
should
be used
with
care—you
can
hang
your
system
(requiring
you
to
reset
the
computer)
or
corrupt
your
data
with
an
improper
POKE.
—Output
to
the
text
screen
PRINT
[print
list]
The
PRINT
statement
is
the
major
output
statement
in
BASIC.
While
the
PRINT
statement
is
the
first
BASIC
statement
most
people
learn
to
use,
there
are
many
variations
of
this
statement.
The
word
PRINT
can
be
followed
by
any
of
the
following:
Characters
inside
quotes
Variable
names
Functions
Punctuation
marks
("text")
(A,B,A$,X$)
(SIN(23),ABS(33))
The
characters
inside
quotes
are
often
called
literals
because
they
are
printed
literally,
exactly
as
they
appear.
Variable
names
have
the
value
they
contain
(either
a
number
or
a
string)
printed.
Functions
also
have
their
number
values
printed.
Punctuation
marks
are
used
to
help
format
the
data
neatly
on
the
screen.
The
comma
separates
printed
output
by
10
spaces,
while
the
semicolon
separates
printed
output
by
three
spaces.
Either
punctuation
mark
can
be
used
as
the
last
symbol
in
the
statement.
This
results
in
the
next
PRINT
statement
acting
as
if
it
is
continuing
the
previous
PRINT
statement.
EXAMPLES:
RESULTS
10
PRINT
"HELLO"
HELLO
20
A$
=
"THERE":PRINT
"HELLO
";A$
HELLO
THERE
287
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals