EasyManua.ls Logo

Commodore 16 - Arithmetic Operations and Data Types

Commodore 16
94 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...
LIST 10 Shows onfy line
10.
LIST- 100 Shows
lines
from the beginning unlii line
1 00
LIST 10-200 Shows lines
from 10
to 200.
inclusive.
LOAD
LOAD ["filename" (.device*] [.relocate
flag)
]
This Is
the
command
to use when
you
want
to use a
program stored
on
cassette tape or on disk.
It you type just LOAD and hit
the
hetorn
key, the Commodore 16 scieen
goes blank.
Press
play,
and
the
Commodore
1 6
starls
looking for a program on the tape When It llnds
one. the Commodore 1
6
prints
FOUND
"lliename"
You can hit the
C"
key
to LOAD; rf you
don't press
Ihe
key, the
compuier
resumes
searching
on
the
tape after a brief interval. Once the program
is
LOADed, you can
RUN.
LIST, or change
D
You can also type the word
LOAD
followed
by a program name, which
Is
most often a name In quoles("program name"). The
name may
be
followed
by a comma (outside of Ihe quotes) and
a
number (or numeric
variable), which
acts as a device number to determine where Ihe
program
is stored (disk or
tape)
tt there is
no number given, your
computer
assumes device number
1 ,
which is
the cassette tape
recorder.
The other device commonly
used w<m the
LOAD
command Is usually
the disk drive, which Is
device number
8.
EXAMPLES:
LOAD
LOAD "BASES'
LOAD A$
1CM
Reads in the next
program on tape
Searches tape for
a
program
called
BASES, and LOADS
it if
h is found
Looks for
a
program whose name
is m
the variable
called AS.
i
i
i
i
i
i
i
i
i
i
i
i
[
I
(
I
f
f
r
f
i
LOAD
"BRIDGES"
f
8
Looks tor the program
called BRIDGES
on the
disk
drive,
and LOADS it if found.
The LOAD command
can
be used
within
a
BASIC
program
to find
and
RUN the next
program on
a tape
This is called
chaining.
The RELOCATE FLAG determines
where in memory a
program is
loaded. A
relocate (lag
of
tells the Commodore 1
6
to
load
the
program at
the start of the BASIC
program
area,
and a flag ol
'
tells
it
to LOAD from the
point where It was SAVEd. The delaull value of the
relocate
Hag
is 0. This is generally used only when
loading machine
language programs.
NEW
NEW
This command erases
the entire program in
memory
and
clears
out
any
variables that may have been used
Unless
the
program was stored
somewhere.
It 'S
lost uniil
you type
il in again. Be careful when you use
tnis command
The NEW
command
can
also
be used as a
statement m a BASIC
program. When your
Commodore 16
gels to
this line, the program Is
erased and
everything
stops.
This is
not
especially useful under
normal
circumstances
.
RENAME
RENAME
[Ddrlve
#.] "old name" TO
"new name"
(
(
Uumt
#)
Used to rename a
file
on a
diskette.
EXAMPLE
RENAME D0."ASSET" TO
"LIABILITY"
Changes
Ihe name
of the
file from
ASSET to
LIABILITY
105

Other manuals for Commodore 16

Related product manuals