[Coco] Printing from DW

Aaron Wolfe aawolfe at gmail.com
Mon Oct 27 09:42:13 EDT 2014


On Mon, Oct 27, 2014 at 4:44 AM, Nick Marentes <nickma2 at optusnet.com.au>
wrote:
>
> On 27/10/2014 5:03 PM, Ken H. wrote:
>>
>> Nick
>> I think you are looking for something like Juan Castro's patched version
of
>> HDBDOS that routed LLIST and PRINT#-2 to the the DW virtual printer.
>> See his posts in this thread:
>> http://permalink.gmane.org/gmane.comp.hardware.tandy.coco/77724
>> Ken
>>
>>
>
>
> I run Darren's SDC-DOS which supports SD "floppy drives" and drivewire.
>
> Maybe this is a good update addition for the next SDC-DOS?
>
> Juan should contact Darren to see if he is receptive to this mod.
>
> Nick
>

This would also be simple to implement as a standalone utility.  To send a
byte to the DW printer, you just preface it with OP_PRINT, 0x50 or ascii
'P'.  When all bytes have been sent, you send OP_PRINTFLUSH, 0x46 or 'F'.
There is a subroutine in the HDBDOS rom you can call to send a byte over
the serial port, I don't know the address offhand but I'm sure someone
does, or it would be evident looking at the HDBDOS source.  There is no
need to worry about speeds or any other low level stuff, that's all taken
care of in the ROM routines.

Basically, just call that sub with the bytes "PhPePlPlPoF" to cause "hello"
to be printed.  I'd imagine this could be poked into place to hook BASIC's
routines or used in a small program to print a file on the disk, etc.

-Aaron


More information about the Coco mailing list