EasyManua.ls Logo

Commodore 128D - Page 287

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...
LOOP
MONITOR
The
graphics
commands
DRAW,
BOX,
CIRCLE,
PAINT,
LOCATE
AND
GSHAPE
have
an
additional
notation
which
allows
you
to
specify
a
distance
and
an
angle
relative
to
the
previous
coordinates
of
the
pixel
cursor
(PC).
The
notation
is
as
follows:
KEYWORD
where:
KEYWORD
SOURCE
DISTANCE
ANGLE
EXAMPLE:
LOCATE
160,100
LOCATE
+20,100
source,
distance;
angle
is
a
graphics
command
such
as
DRAW,
CIRCLE,
PAINT,
LOCATE,
BOX
or
GSHAPE
is
the
same
code
as
in
all
of
the
graphics
commands
is
the
number
of
pixels to
move
the
pixel
cursor
is
the
number
of
degrees
to
move
relative
to
the
previous
pixel
cursor
coordinate
Positions
the
PC
in
the
center
of
the
bit
map
screen.
Nothing
will
be
seen
until
something
is
drawn.
Move
the
pixel
cursor
20
pixels
to
the
right
of
the
last
PC
position
and
place
it
at
Y
coordinate
100.
LOCATE
-
30,
+
20
Move
the
PC
30
pixels
to
the
left
and
20
down
from
the
previous
PC
position.
The
PC
can
be
found
by
using
the
RDOT(0)
function
to
get
the
X-
coordinate
and
RDOT(1)
to
get
the
Y-coordinate.
The
color
source
of
the
dot
at
the
PC
can be
found
by
PRIN.Ting
RDOT(2).
See
DO/LOOP
—Enter
the
Commodore
128
machine
language
monitor
MONITOR
See
Appendix
J
for
details
on
the
Commodore
128
Machine
Lan
guage
Monitor.
279
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals