Appendix C: Diskette/Cassette Operations; Transfer Programs Between Cassettes And Diskettes; Transfer Data From Cassette To Diskette - Texas Instruments PHP1240 Manual

Disk memory system
Table of Contents

Advertisement

APPENDIX C: Diskette/Cassette Operations

Transfer Programs Between Cassettes and Diskettes

To transfer programs between cassettes and diskettes. load the program Into the
computer's memory using the OLD command. Then save the program using SAVE.
For example. the following sequence transfers a program from a cassette to the diskette
in disk drive one and assigns BRYAN as the file name.
OLD CS1
(follow normal cassette Instructions)
SAVE OSK1 . BRYAN
The data Is now on the diskette In drive one under the name "BRYAN".
The following sequence transfers a program named "EDGIN" from the diskette In disk
drive one to a cassette.
OLD DSK1 .EDGIN
SAVE CS1
(follow normal cassette instructions)
The program Is now on the cassette.

Transfer Data from Cassette to Diskette

To transfer data from a cassette to a diskette. you must read it from the cassette Into
the computer and then store It on the diskette. You should first decide how you are
going to store the data on the diskette; that Is. what parameters you are going to use in
the OPEN statement.
The following program transfers data from a cassette to a file named KAY on disk drive
one. The file Is set up In a default format.
1 00 OPEN #50: "CS1 "
1 1 0 OPEN #60:"DSK1 .KAY"
1 20 INPUT #50:X$
1 30 REM WHEN THE FILE ENDS. THE PROGRAM WILL HAVE AN ERROR
1 40 PRINT #60:X$
1 50 GOTO 1 20
When you run the program. you will be Instructed how to use the cassette.
The EOF function cannot be used with cassettes. After you run the program. It ends
with error 33 because the cassette runs out of data. YOU MUST LEAVE BY ENTERING
"BYE." If you leave by pressing
44
data may be lost from the diskette.
QUIT.

Advertisement

Table of Contents
loading

Table of Contents