Re: Using Disks on a TI


[ Follow Ups ] [ Post Followup ] [ TI-99 Emulator Forum ] [ FAQ ]

Posted by Tursi on March 02, 2000 at 06:47:55:

In Reply to: Using Disks on a TI posted by Brad Dillon on March 01, 2000 at 09:02:37:

: I know this is a very basic question, but I finally got a disk drive for
: my TI. However, I do not have any documentation for the Disk Controller
: and do not know how to do a directory command in XB or basic. I know Old Dsk0
: will load programs, but how do I know what is on the disk?

Unfortunately, there is no easy way, XB didn't provide a directory command.

OLD DSK1.
will load a BASIC or XB program from drive 1 (they start at 1, not 0)
SAVE DSK1.
will save it, same idea as with cassette
RUN "DSK1."
in XB only, and note the quotation marks, loads and runs an XB program.

The only way to get a directory, though, is to run a small program. I used to keep a copy of the program on each disk (till I got a Horizon RAMdisk, which lets you do it at boot ;) ).

From another post here, here is a program for BASIC or XB to get a disk directory:

80 rem (c)1999 by Bromosel
90 call clear
100 open #1:"dsk1.",input,relative,internal
105 rem Get the name of the diskette
110 input #1:a$
120 print "directory of: ";a$
130 print "--------------"
135 rem Get the inventory
140 for i=1 to 127
150 input #1:a$,j,j,k
155 rem if no more files present, stop the output and close #1
160 if len(a$)=0 then 190
170 print a$
180 next i
190 close #1
200 end



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ TI-99 Emulator Forum ] [ FAQ ]