![Texas Instruments PHP1240 Manual Download Page 21](http://html.mh-extra.com/html/texas-instruments/php1240/php1240_manual_1097136021.webp)
Now, press
BEGIN
to return to the main Disk Manager selection list. Then press
BACK.
When the master title screen appears, press any key to go to the master selection list.
Select TI BASIC and enter the following program.
100 OPEN #1 :"DSK1.FIRSTFILE",RELATIVE,INTERNAL
110 FOR A
=
1 TO 20
120 PRINT #1 :"THIS IS RECORD";A
130 NEXT A
140 INPUT "WHICH RECORD?":A
150 IF A< 1 THEN 200
160 IF A>20 THEN 200
170 INPUT #1,REC A-1 :A$,8
180 PRINT A$;8
190 GOTO 140
200 CLOSE #1
To save the program on the diskette in disk drive one under the name "PROGRAM 1."
enter SAVE DSK1.PROGRAM1. The disk drive "working" light goes on, the diskette
spins, and the program is saved on the diskette. Enter NEW to erase the program from
the computer's memory. Enter OLD DSK1.PROGRAM 1. The program is loaded into the
computer's memory from disk drive one. Enter LIST to see the program.
Enter RUN to run the program. The disk drive "working" light comes on as twenty
items are stored. The prompt WHICH RECORD? appears. Enter a number from 1 to 20.
That record is retrieved and displayed on the screen. You can retrieve the records in
any order, as often as you like.
When you are finished, enter 2 1. The file is closed and you are back in TI BASIC. Enter
BYE to leave BASIC to ensure that the file is properly closed and no data Is lost.
With the master selection list on the screen, select the option for the Disk Manager
Command Module. Set the commands for single disk processing as you did before.
Again choose option 2, DISK COMMANDS. Then choose option
I,
CATALOG DISK, and
the following screen asks:
CATALOG DISK
MASTER DISK [1 -3)? 1
DISKNAME
=
diskname
WHERE DO YOU WANT LISTING?
1 SCREEN
2 SOLID STATE PRINTER
3 RS232 INTERFACE
4 OTHER
YOUR CHOICE? 1
The first prompt, MASTER DISK ( 1·3)?, has already been answered as 1 because single
disk operation has been Initialized. Press
ENTER.
You want the catalog on the screen, so
press
ENTER
to confirm that choice.
18
Summary of Contents for PHP1240
Page 1: ......