Commodore PET User Manual page 131

Table of Contents

Advertisement

If RUN is specified with a line number following it PET still performs the CLR
and RESTORE but begins execution at the specified line number. The RUN with
line number command is not for use after a program break -
use CO NT or GOTO
for that purpose. Rather. RUN with a line number specified is used to begin execu-
tion of a program within a program. Usually the two programs will be completely
separate. each program having its own range of line numbers.
The RUN with no line number command may also be used in program mode.
It begins execution of the program from the top with ail variables cleared and
DATA being called from the beginning again. However. vou will probably find that
using the CLR. RESTORE. and GOTO commands is preferable.
Examples:
718
RUN
RUN 1000
Initialize and begin execution of the current pro-
gram.
Initialize and begin execution of the program
starting at line 1000.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cbm

Table of Contents