Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
INPUT
INPUT* life number, variable lis!
This works
tike INPUT, but lakes (he
data from a previously OPENed
file
or
device.
No prompt
string is
allowed This command
can
only
be
used in program
mode
EXAMPLE:
INPUTS,
AS, C, D$
LET
[LET) variable
-
expression
The word
LET is hardly ever
used
in piograms,
since it is not
necessary,
but the statement itself is
1he
heart
of all BASIC programs
Whenever
a
variable
is
defined
or given
a
value. LET is
alwayB Implied
The
variable
name which is to
get the result of
a
calculation
is on the
left side of
the equal sign, and
the
number or
formula is on the right
side.
EXAMPLE:
10 LET A
=
5
20 B
=
6
30 C
»
A
•
B
+
3
40 DJ
-
"HELLO-
LET is implied
(but not necessary)
in lines 20,
30
and 40.
i
'
i '
i
r
i
(
t
i
!
I
(
I
I
'
I
I
I
f
f r
(
i
I
i
! I
I
'
I
I
LOCATE
LOCATE x-coordlnate, y-coordlnate
The LOCATE command lets
you
put
the
pixel
cursor (PC)
anywhere
on
the screen. The PC is the current location of the starting point
ot the
next drawing. Unlike
the regular cursor, you can't
see
the PC.
but you
can
move II
with the LOCATE command. For example.
LOCATE 160. 100
positions the PC In the centre of
the high resolution
screen
You won't
see anything until
you
actually draw something.
You can find out
where the
PC
Is at any time
by
using
the
RDOT(0) function
to get the X-
coordinate
and RDOT(l ) to get the Y-coordlnate. The colour
source
of
the dot
at
the PC
can be
found
by
PRINTing
PDOT(2). (In all drawing
commands where
a
colour
option Is
available,
you may select a value
from to 3. corresponding
to Ihe background, foreground,
multicolour
1 ,
or multicolour
2 as the
colour
source.)
MONITOR
MONITOR
This command takes
you out of BASIC Into
the built-in machine
language monitor
program The monitor is
used to
develop,
debug,
and execute machine language programs
more easily than from BASIC.
See the section on monitor commands for
more Information (When In
the
monitor,
typing
an 'X' and pressing arrufiN
gets you
back
to
BASIC.)
NEXT
NEXT [variable.
. . . ,vanable|
124
I
f
125