[Coco] Drivewire and HDB-DOS

Bill Pierce ooogalapasooo at aol.com
Fri Jun 27 17:14:05 EDT 2014


Gustavo,
Sending dw cmds through "PRINT #-2" will not work. RSDOS BASIC sets the baud rate for this cmd and the baud rate would be wrong for DW4.
 
You would actually have to write a routine (BASIC probably wouldn't work), to write the specific dw4 cmd bytes to the dw routines in HDBDOS.These routines only exist in the DW and Becker versions of HDBDOS.
Mounting the vhd images is not a complex operation, but adding it to RSDOS could probably get complex. I have experimented with the cmds in rsdos, but the real problem comes down to setting up buffer space for the cmd string and returning messages. Theoretically, you should be able to close the port after sending the cmd and not read the return message, but then on failure, you wouldn't know it failed until you tried to read the (supposidly) mounted drive.

The entrance to the DW4 routines in HDBDOS are:

$D93F fdb dwread
$D941 fdb dwwrite

These are address tables so you would use:

JSR [$D93F]
JSR [$D941]

I'm pretty sure the only requirement is the byte to send be in the "A" reg
But, you first have to open a port (0-13, 14 for MIDI) with an "open cmd" sequence of bytes and EACH following byte must be preceded by "$8x" (opcode FastWrite) in which x represents the port #. Then to read the response, you must use the read sequence. All this is explained in the dw4 spec in the dw4 wiki on SF.
In NitrOS9, this is easy stuff.. but no-one has written anything to utilize these features for RSDOS (HDBDOS) that I know of. The only program I know of that uses the dw4 features from RSDOS is the re-written version of Lyra (MIDI sequencer) in which Robert Gault did the dw mods and I modded that to work with the becker port.
I have thought of writing such a utility, but can't never seem to find time away from my OS9 projects to do so.
 

Bill Pierce
"Today is a good day... I woke up" - Ritchie Havens
 

My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Webmaster of The TRS-80 Color Computer Archive
http://www.colorcomputerarchive.com/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
E-Mail: ooogalapasooo at aol.com


 
 
-----Original Message-----
From: Gustavo Ranaur Schoenaker <ranaur at ranaur.net>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Fri, Jun 27, 2014 3:18 pm
Subject: [Coco] Drivewire and HDB-DOS


Just checking  ... Is there any command in HDB-DOS to mount/unmount disks
using drivewire?

I know the is an OS-9 command (dw). But I don't want to use it yet. :)

Even is there is no command, anyone (me included) could make a .BAS program
do send the unmount/mount command through the serial port (PRINT #-2). Is
just a matter to know the specification ... any help?

Thanks,

-- 
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco

 


More information about the Coco mailing list