Program Mode; Reserve - Radio Shack PC-2 TRS-80 Owner's Manual

Pc-2 trs-80
Hide thumbs Also See for PC-2 TRS-80:
Table of Contents

Advertisement

• RESERVE Mode where you assign values to Function Keys and set up Function Key menus.
The Operation Mode Indicator (on the Display) will tell you which mode the Computer is in.
Press the (MODE) key to enter either PROgram or RUN Mode (the Indicator will change).
Press (SHIFT) (MODE) to enter RESERVE Mode.
PROgram Mode
Whenever the Operation mode I ndicator displays PRO, the PC-2 is in the PROgrammable Mode and you can write
BASIC programs.
The PROgram Mode is used only for writing programs. All program lines must begin with a number between 1
and 65279, followed by a program instruction. (If you're typing a long program, we suggest you type in the line
65279:
END in advance.) You must always press
(ENTER)
to enter the program line into the Computer's memory.
For instance, type 50 PRINT X
(ENTER) .
After you press
(ENTER)
,the Computer will display: 50: PRINT X
You cannot use the PC-2 as a calculator (sometimes referred to as "immediate mode calculations") while it is
in PROgram Mode.
For example, you cannot instruct the Computer to compute the answer to 2
+
2 when it
is in PRO Mode. It will interpret the first "2" as program line number 2 and create a program line consisting of
1J+2".
In the same sense, if you attempt to enter an alphabet character that has not been assigned a numeric value and
that is not preceded by a number (e.g., a line number), the Computer will return a zero (0) on the right side of the
Display when you press
(ENTER) .
This is just the PC-2's way of telling you that you entered an invalid entry into
22

Advertisement

Table of Contents
loading

Table of Contents