[cc65] I've ported my 1-Wire routines (& Apple II beer fridge controller) to cc65

From: Scott Alfter <scott1alfter.us>
Date: 2007-09-25 09:27:30
About four years ago, I connected some 1-Wire sensors to my Apple IIe through a
simple adapter board (plugs into the joystick port) to monitor the fermentation
of my homebrew.  Software-wise, I never got around to publishing more than the
assembly-language 1-Wire primitives needed to read the temperature sensor
and real-time clock hanging off the aforementioned interface board.  The
higher-level functionality was mostly in BASIC, with a few assembly-language
speedups here and there.  For the most part, it's worked well for the past
four years, but parts of the program (especially screen updates and 1-Wire
device enumeration) were slow.

I've rewritten the entire package in a mix of C and assembly now, using cc65 to
cross-compile.  Once I had some toolchain installation problems sorted out, the
rest of the project came together pretty nicely over the course of maybe 2-3
weeks of evening hacking.

It's here if you want to take a look:

http://alfter.us/files/a2bfc-1.0.tar.gz

The 1-Wire routines should be easy to adapt to other targets; there's just one
assembly-language source file with all of the Apple II-specific primitives in
it.  I could definitely do a better job documenting it, but the codebase at
this point is small enough that you can probably figure it out by looking at it.

Scott Alfter
scott@alfter.us

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 25 09:34:50 2007

This archive was generated by hypermail 2.1.8 : 2007-09-25 09:34:53 CEST