[Coco] Printing from Disk Extended Color Basic (via Drivewire)
Bill Pierce
ooogalapasooo at aol.com
Fri Dec 23 07:52:17 EST 2016
Barry, I'm not sure of what bytes need to be sent to init the print, but the HDBDOS_DW (or Becker) read/write entries are:
read jsr [$D93F] (actual routine at $DB47)
write jsr [$D941] (actual routine at $DB15)
According to the DW4 WIKI (out of date), send control byte $50 then byte of print data. $50 MUST be sent before each byte.
This fills the dw4 print queue.
When finished sending bytes, send $46 to flush the print buffer.
As far as baud, HDBDOS handles the baud (I think) so if you're using the proper hdbdos for each machine (Coco 1, 2, or 3), then one print sub-routine should work on all.
As a note, Aaron mentioned ways to redirect this command so it actually goes to the printer instead of a file. I do not remember the method or cmds needed.
The "printer mode" must be set to the format needed prior to starting the print cycle. It can be ascii text or epson emulated for graphics. This is done through the DW command set and different from above.
Bill Pierce
"Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull
My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
Global Moderator for TRS-80/Tandy Color Computer Forums
http://www.tandycoco.com/forum/
E-Mail: ooogalapasooo at aol.com
-----Original Message-----
From: Barry Nelson <barry.nelson at amobiledevice.com>
To: coco <coco at maltedmedia.com>
Sent: Fri, Dec 23, 2016 4:30 am
Subject: Re: [Coco] Printing from Disk Extended Color Basic (via Drivewire)
I am working on a machine language program that will load into the cassette buffer to allow printing to DriveWire. I have one stumbling block. What is the address of the routine in rom to output a byte to the serial port at DriveWire speeds? The normal BASIC printer routine only goes up to 9600 baud. I am coding this routine so it should be able to work on a CoCo 1, 2, or 3 (I hope) and will not take up any ram, except the cassette buffer, so don’t try to use my routine while doing cassette I/O. :)-- Coco mailing listCoco at maltedmedia.comhttps://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list