beautypg.com

Apple IIe User Manual

Page 29

background image

Page 29 of 74

IIe
Printed: Tuesday, March 4, 2003 10:40:15 AM

NEW:

Erases memory so you can start programming with a clean slate.

END:

Tells the computer that the program is finished.

LIST:

Displays the program in memory.

RUN:

Starts the program that's in memory.

SAVE: Stores your program in a file on a disk.

LOAD: Transfers a copy of a program on a disk into memory.

CAT: Short for Catalog.

Displays a list of what's on a disk.

ProDOS Commands:

SAVE, LOAD, and CAT are ProDOS operating system commands that you'll use when you're writing
BASIC programs.

The PRINT Statement

PRINT statements are used to communicate with the person using the program.

(The words in

application program menus, on startup displays, and in error messages were all put there by the
programmer by using PRINT statements assuming the program is written in BASIC.)

Here's how the

PRINT statement works in a BASIC program:

You type a number.

You type PRINT.

Then you type, within quotation marks, the word or phrase you want displayed. (It doesn't
matter whether you use uppercase or lowercase.)

Then you press Return.

Try it by typing this:
1 PRINT THIS IS MY FIRST PROGRAM.
and pressing Return.

Line Numbers:

Every line in a BASIC program has a number in front of it; these tell the microprocessor the
order in which to carry out the instructions in the program.

Now type RUN and press Return.

If all goes well, the phrase that you typed within quotation marks should appear without
quotation marks on the line under the word RUN. Your text display should look like this:

1 PRINT THIS IS MY FIRST PROGRAM. RUN
THIS IS MY FIRST PROGRAM.