home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
MISC
/
RSDir.lzh
/
README.RSDIR
next >
Wrap
Text File
|
1992-01-19
|
1KB
|
34 lines
RSdir is a quick and dirty little hack I created to give a
directory listing of Radio Shack Color Computer Disk ECB format
disks on an OS9/68000 system. To my knowledge, this utility is
the first of its kind for a 68000 platform, though I'm sure others
will follow (and hopefully better ones! :-)
The main code is a simple basic09 program, which, when packed,
is run with the following command line:
$ RSdir /d0 (or whatever floppy device)
ssdcm.a is the assembly interface to the SS_DCmd SetStt call which allows
direct sector reads and writes. It is pretty much lifted from the
program example in the GMX Micro-20 Manual Addenda for Professional OS9,
page B-2.
To create a working program, load the basic09 code and pack it. Assemble the
subroutine module by typing the following two command lines:
$ r68 -o=ssdcm.r ssdcm.a
$ l68 -n=SSDcm -o=ssdcm -l=/dd/lib/sys.l ssdcm.r
Note that the present implementation is set to read 48 TPI CoCo disks
in 96 tpi drives. Like I said, this was a quick and dirty hack, but it
does work. Also note that SS_DCmd is not implemented the same way on
all OSK machines, so if you are not running a GMX Micro-20, I cannot
guarantee the successful and harmless execution of this program, though
I'd like to see how many platforms this DOES work on.
If enough people bug me about it, I'll see about cleaning this up and
making it more useful (i.e. adding RSread, RSwrite, etc...)
-Russell Hoffman