EasyManua.ls Logo

Commodore 128 - Storing and Reusing Your Programs

Commodore 128
448 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...
TIP: Whenever you are using more than one set of
parentheses in a statement, it's a good idea to count the
number of left parentheses and right parentheses to make
sure they are equal.
10 X = 46
20 Y = 73
30Z = 114
40 A = (X + Y + Z)/3
50?THE AVERAGE OFX;Y;AND Z;ISA;
60 END
STORING AND REUSING YOUR PROGRAM
Once you have created your program, you will probably want to
store it permanently so you will be able to recall and use it at
some later time. To do this, youll need either a Commodore disk
drive or the Commodore 1530 Datassette.
You will learn several commands that let you communicate
between your computer and your disk drive or Datassette. These
commands are constructed with the use of a command word
followed by several parameters. Parameters are letters, words or
symbols in a command that supply specific information to the
computer, such as a filename, or a numeric variable that
specifies a device number. Each command may have several
parameters. For example, the parameters of the disk format
command include a name for the disk and an identifying number
or code, plus several other parameters. Parameters are used in
almost every BASIC command; some are variables which change
and others are constant. These are the parameters that supply
disk information to the C128 and disk drive:
Disk Handling Parameters
disk name arbitrary 16 character identifying name
you supply.
file name— arbitrary 16 character identifying name
you supply.
i.d. number— arbitrary two-character identifying code
you supply
drive number must use 0 for a single disk drive, 0 or 1
in a dual drive.
3-26

Table of Contents

Other manuals for Commodore 128

Related product manuals