[Coco] ML Disk I/O examples?
jcewy at swbell.net
Fri Apr 13 10:40:06 EDT 2007
Mark McDougall wrote:
> Can anyone please point me to some "nice" examples of assembler disk I/O?
> I simply need to open a series of (binary) files and read then into
> Target is Coco 3.
> The only examples I've seen are from the "Portal-9 Source Pack" and
> there's scarcely a comment in the entire collection of listings!
> Pac-dude is using DSKCON and it makes my head hurt.
> Surely there's _commented_ examples around that use disk basic ROM
> routines to open and read files??? Or is it really that painful on the
While it doesn't quite rise to the level of "nice examples", the "Color
Computer Disk System Owner's Manual and Programming Guide" has has a
section on "Technical Information" in chapter 11, including an
explanation of the File Allocation Table and how to use the DSKCON
routine in machine language programs (page 60). It does give a couple
very brief commented examples on page 61. You can download this manual
from www.trs-80.com (
Granted, my 6809 assembly language is about like my German or Koine
Greek -- I can read a little, but don't write much without great
difficulty and much consultation of the books -- but it looks to me as
if this shouldn't be too difficult, and the Rad Shak manual has most of
the information you would need. The hardest part is that you apparently
need to read and process the directory yourself. You give DSKCON the
sector number that you want to read or write and the address of a sector
buffer and it does it. That's about all you get. Maybe the Unravelled
series reveals an undocumented routine to process the directory.
More information about the Coco