EasyManua.ls Logo

Commodore Plus 4 - Page 80

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...
68
The
BASIC
Language
POKE
Abbr.
pO
POKE
memory
location,
number
Places
a
single
value
directly
into
a
specific
RAM
location,
such
as
each
position
in
the
screen
memory.
Unless
you
are
an
advanced
programmer,
you
are
unlikely
to
use
this
command.
Parameters:
memory
location,
value
1.
Names
the
specific
address
of
a
memory
location
or
input/output
register.
The
possible
values
are
0
to
65535.
You
can
find
specific
addresses
on
the
memory
map
in
Appendix
G.
2.
Gives
the
number
(0-255)
for
the
value
you
want
to
place
in
the
memory
location.
See
the
screen
display
chart
in
Appendix
E
for
values
that
can
be
poked
to
screen
locations.
These
values
are
not
the
same
as
CHR$
values.
Example:
10
SCNCLR
15
REM
3079
IS
COL
7
OP
ROW
1
ON
SCREEN;
4071
IS
BOTTOM
RIGHT
CORNER
20
FOR
X=3079
TO
4071
STEP
41
30
POKE
X,0
25
REM
PRINT
AKT
@
SIGN
AT
41-SPACE
INTERVALS
40
NEXTX
50
FOR
Y=3103 TO
4071
STEP
39
55
REM
PRINT
AN
@
SIGN
AT
39-SPACE
INTERVALS
60
POKE
Y,0
70
NEXTY
POS
Abbr.
none
POS
(number)
Finds
the
column
in
which
the
cursor
currently
resides.
This
is
the
column
in
which
the
next
item
will
be
displayed
by
a
PRINT
command.
The
column
number
is
between
0
and
39.
The
number
in
parentheses
is
a
dummy
argument,
which
means
it
does
not
mean
anything.
It
is
nonetheless
required,
and
you
should
just
use
POS(O).
You
can
also
find
the
column
by
using
PEEK(202)
and
the
row
by
using
PEEK(205).
PRINT
Abbr.
?
PRINT
output
list
Displays
the
following
types
of
information
on
the
screen:
Text
entered
in
quotes
Solutions
to
calculations

Other manuals for Commodore Plus 4

Related product manuals