> > Hi Ben, > > > I have a no-slot-clock on the way for my Apple II and was wondering if > > anyone has some sample code or pointers on how to use it from cc65. It > > apparently emulates the Thunderclock. > > According to the Tunderclock users guide > (http://www.apple-iigs.info/doc/fichiers/thunderclock.pdf) > you access the clock on three levels: > > - BASIC: Doesn't work (at least well) from cc65 programs. > > - Firmware: See the code below that I hacked up for you based on the first > sample in chapter 4 of the users guide. > > - Hardware: Necessary for interrupt based access. cc65 has quite nice > interrupt support for the Apple2 under ProDOS 8. You need to do some > assembler coding to use it. Check out the cc65 source on how to do it > and/or ask me if you've got problems. > > Best, Oliver > > #include "stdio.h" > > void (*rdtcp)(void) = (void (*)(void))0xC208; > void __fastcall__ (*wttcp)(char) = (void __fastcall__(*)(char))0xC20B; > > void main(void) > { > char *c = (char*)0x200; > > wttcp('>' | 0x80); > rdtcp(); > > putchar('\n'); > while (*c) > putchar(*++c & 0x7F); > putchar('\n'); > } I have the sources for that in C on the PC. I also have the same device in one of my XT machines. If I can get the chance to find the floppy with the source code on it, or find it in one of my archives, I can place a PC disk image up on my web server for you along with the extracted files in a zip. Might be something interesting to add onto my emulator too, which I have not touched in some 12 years. Yours, -- Andrew J. Kroll Software and Hardware Engineer and Consultant Grafixoft http://dr.ea.ms/HW/ ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Jun 15 04:09:19 2006
This archive was generated by hypermail 2.1.8 : 2006-06-15 04:09:23 CEST