Disk System Operation With Ti Basic; Saving And Loading Programs - Texas Instruments PHP1240 Manual

Disk memory system
Table of Contents

Advertisement

Disk Memory System

DISK SYSTEM OPERATION WITH TI BASIC

Your disk memory system can be used conveniently with TI BASIC. This section
discusses saving/loading programs and processing file data with programs.
The disk system requires some working space in the main memory (RAM) of the Home
Computer. The exact amount of space required depends on the number of files which
are allowed to be open at any given time. In TI BASIC this number is preset to 3. The
disk system then uses 2088 bytes of RAM.
You may use the CALL FILES statement to change the number of files that may be
open. Keep in mind, however, that increasing the number of allowable open files also
increases the amount of memory used by the disk system. (See CALL FILES for more
information.)

Saving and Loading Programs

The disk system stores and retrieves TI BASIC programs quickly and efficiently.
Approximately 100 fifty-line programs can be stored on a single-sided diskette and 100
one-hundred-line programs can be stored on a double-sided diskette.
The SAVE command is used to store a program on the diskette. The format is
SAVE
The
device
Is DSK 1 , DSK2, or DSK3, depending on which disk drive you want to
address. The
program-name
program. Valid program names can be up to ten characters long and can include any
character except the period and the space characters.
For example, to store a program called COLORDEMO on the diskette in drive one, you
would enter this command (with the program In memory):
SAVE DSK1.CDLORDEMO
Alternatively, the diskette's name can be specified, rather than the number of the disk
drive. To store a program called COLORDEMO on a diskette named MYDISK, you enter:
SAVE DSK.MYDISK.COLORDEMO
The computer searches all attached drives until it finds the one that contains the
diskette named MYDISK.
The OLD command Is used to read a program from a diskette. The format is:
OLD
When you enter the OLD command, the program you designate by name is read Into
the computer's memory. You can then run it, list it, or edit it - just as you would use a
program entered from the keyboard.
device.program-name
Is any valid Identifying name you want to give your
device.program-name
29

Advertisement

Table of Contents
loading

Table of Contents