[Coco] 6809 File I/O

Glen Hewlett glen.hewlett at sympatico.ca
Sat Mar 18 13:47:20 EDT 2017


Hi Guys,

It would be great if there were some place to post code snippets kind of like a library of useful assembly code that doesn’t require the any CoCo ROMs so it would work on more versions of the CoCo such as Disk related routines, and others such as sound, graphics, keyboard, joystick, bit banger and also libraries for accessing the RS232 cartridge and Orchestra 90 cartridge and others.

I enjoy writing my own code but other times it would be nice to not have to recreate the wheel.  Still other times it’s just nice to look at how someone else has handled something in assembly to look at as a starting point or to make sure you understand something completely.  The Unscrambled series of books is great that way and you can figure out how to use the disk routine from there.

I’m sorry Peter that I’m not actually any help to your problem at the moment but maybe when you get it worked out we could find a place to start hosting such assembly libraries for the CoCo.  Maybe GitHub could be used for this.  I plan on sharing my all my Pac Man source code with optimized sprite rendering routines once I’m done.

Cheers,
Glen 


> On Mar 18, 2017, at 12:32 PM, lost <lost at l-w.ca> wrote:
> 
> The stuff in the disk edtasm manual assumes you are using that weird color trsdos thing that disk edtasm runs under. In other words,  that stuff isn't for raw disk basic.
> Disk file IO in asm under disk basic is rather unpleasant since none of the required routines are exposed through a vector table and they are in different locations between the two versions of disk basic. You also have to intercept the error routines if you don't want to drop to basic on error. It can be done but is not particularly pleasant.
> I did a bit of it with my daggorath update but I don't have the code handy at the moment.
> -------- Original message --------From: Peter Cetinski <pete at pski.net> Date: 2017-03-18  9:05 AM  (GMT-07:00) To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com> Subject: Re: [Coco] 6809 File I/O 
> Actually, I meant I was using the examples in the Disk EDTASM manual.  Are those known to work properly?
> 
>> On Mar 18, 2017, at 11:00 AM, Peter Cetinski <pete at pski.net> wrote:
>> 
>> Can anyone point me to some good 6809 assembly examples of disk file i/o using RS-DOS?  The only examples I could find are in the EDTASM+ manual but I haven’t been successful in getting those working.  Not sure if they are broken or I am broken! :)
>> 
>> Thanks
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list