9
RESULT : A “window” appears at the top
right of the screen displaying the
first line number of the first
instruction preceded by #. Note
that this line has not been executed.
(See figure 2-2.)
ACTION : Press the SHIFT key.
RESULT : The first instruction of your
program is executed and the first
line number of the next instruction
displayed in the window.
Figure 2-2. The Screen During Single-step
2.4.14 OFF
FORMAT : OFF
PURPOSE : To cancel the TRACE and STEP
modes.
OFF cancels the commands TRACE and STEP.
The “window” will disappear from the screen
and the program will execute at normal speed.
EXAMPLE : To return to normal program
execution following a STEP
command as in the previous
example:
COMMAND : OFF (RETURN)
TYPE : RUN (RETURN)
RESULT : The window has disappeared and
the program executes normally.
2.4.15 PROG
FORMAT : PROG
PURPOSE : To change from EDIT mode to
PROGRAM mode.
The PROG command gives access to twelve
commands which are automatically assigned to
the function keys when the cartridge is inserted
into your VIC. (See section 2.2.2.)
When the PROGRAMMER’S AID cartridge is
started up, you are in PROGRAM mode. If you
have entered EDIT mode (see Section 2.3), to
return to this mode type the word PROG or press
the CTRL and F1 keys. The function keys are
assigned with the following commands:
KEY 1, “LIST”
KEY 2, “MID$“
KEY 3, “RUN (RETURN)”
KEY 4, “LEFT$(“
KEY 5, “GOTO”
KEY 6, “RIGHT$(“
KEY 7, “INPUT”
KEY 8, “CHR$(“
KEY 9, “EDIT (RETURN)”
KEY 10/ , “GOSUB”
KEY 11, “RETURN (RETURN)”
KEY 12, “STR$(“
NOTE: (RETURN) indicates a built in carriage
RETURN following the command. This appears
on the screen as a reverse-field left-arrow. (See
Section 2.4.9 to add a built in carriage RETURN.)
EXAMPLE : To enter PROGRAM mode from
EDIT mode:
COMMAND : PROG (RETURN)
DISPLAY : PROG
READY
2.4.16 MERGE
FORMAT : MERGE “(Program name)”,(Device
number)
PURPOSE : To load a previously saved program
or subroutine and incorporate it into
the program currently stored in the
VIC’s memory.
The device number refers to the number of the
peripheral on which the program or subroutine
to be MERGEd is stored. The device number is 1
for a cassette unit and 8 for a disk unit. If not
specified, the device number defaults to 1, i.e.
cassette. The program can be specified in the
same way as for the BASIC command LOAD. If
a program name is not specified, the next
program on the cassette or the first program on
the diskette is MERGEd.
CAUTION: If line numbers are duplicated in
both programs, the lines with the same number
will follow each other, i.e. the program will be
interspersed rather than appended. If this is
likely to occur, use the RENUMBER command