Storing Your Basic Program; Changing Your Basic Program - IBM 5150 Manual To Operations

Hide thumbs Also See for 5150:
Table of Contents

Advertisement

Storing Your BASIC Program
Before we start making changes to this program, let's
store it on a diskette. Right now, while it is the current
program (that is, the one in memory), every time you
type RUN, the program will be executed.
If
you want
to~
be able to run this program after you load and run some
other programs, however, you must have it stored on a
diskette.
Let's assume we want to call this program ORIG 123
(which stands for "Original 123 "). Here is how you save
it:
1
Make sure Disk BASIC or Advanced BASIC is ready-Ok
is displayed.
2
Insert a diskette into drive A:. (The diskette should have
been formatted already and have space on it.)
3
Type this:
save "orig123
and press Enter.
4
The program is stored on the diskette in drive A: with
the filename ORIG 123 and the extension .BAS.BASIC
assigns that extension because we did not specify one.
Now you can LOAD "ORIG 123" and RUN it just as we
showed you with the BOWLING program (see "Running
a BASIC Program on Another Diskette").
Changing Your BASIC Program
To change a program, we first need to know what
statements in the program are; and then, knowing that,
~
make the changes to particular statements as necessary.
BASIC 3-22

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents