RENUMBER
RENUMBER
[new starling
line
*
[.Increment
|
t
old starling line
#]
] 1
The new
starting
line is tne number of the first line in the program
after
renumbering.
It
defaults
to 10.
The increment is the spacing
belween
line
numbers, I
e.
10,
20, 30 etc.
it also defaults
to
1
0,
The
o'd starling line
number
is ihe line number in
(he program
where
renumbering
is lo begin This allows you to renumber
a
portion of your
program. It defaults
lo Ihe
first line
of your program.
This command
can only be executed from direct mode
EXAMPLES
RENUMBER
20, 20, 1
RENUMBER,
,
65
Starting
al
line
1 , renumbers Ihe program
Line 1
becomes
line
20.
and
omer unes
are numbered in increments of
20.
Starting
at line 65. renumbers m
Increments of 1
0. Line 65 becomes
line
1 (unless there are already lines
numbered
10-64,
In which
case fhe
command
Is nol
carried
out).
RUN
RUN
|Une
f\
Once
a
program has been
typed
Into
memory
or
LOADed, the RUN
command makes it start working RUN clears all variables in the
program belore starling
program execution If Ihere is no number
following
the command RUN,
the computer starts
with
the lowest
numbered program line.
If there Is
a
number following
tne RUN
command
execution starts al thai line. RUN may
be used
within
a
program.
Oh
(
I
I
I
I
[
I
I
I
I
I
(
!
I
I
I
I
I
:
I
I
I
'
I
f
EXAMPLES:
RUN
RUN 100
Slarts program working from lowest line number.
Starts program at
line
1 00
SAVE
SAVE
("filename"
|.
device*
f.EOT
flag]
1
1
This command stores
a
program current
ly
in memory onto a cassette
tape
or
disk. If you just type the word SAVE and
press
BETUWi
your
Commocore 16 altempts
lo
store the program on Ihe
cassette
tape. It
has no way of checking if
there
is alieady
a
program
on
the
tape
in that
location,
so be
careful with your tapes If you type the SAVE command
followed
by a name in quoles or a
siring variable
name, the
Commodore 16 gives
the
program lhal
name, so It may be
more easily
located
and retrieved In Ihe future.
If you
want
to
specify
a
device
number for the SAVE,
follow
the name by a
comma (after
the quotes)
and
a
number oi numeric variable Device number t is the
tape
drive,
and number
8
is the disk. Alter the number on
a tape
command, there
can be a comma and a second number, which is
between and 3
second number is
2,
the Commodore 1 6 puts an END-OF-TAPE marker
(EOT
flag) after
your
program. If
you are trying to LOAD a
program
and
the Commodore
1 6
'tnds
one
of
these
markers rather
than
the program
you
are
trying
to
LOAD,
you
get a FILE NOT FOUND ERROR
EXAMPLES
SAVE
SAVE "MONEY"
SAVE AS
SAVE "YOURSELF"^
Stores program to tape
withoul
a name.
Stores on tape with
the
name MONEY
Stores
on tape with name m
variable
AS
Stores
on
disk
with name YOURSELF
107