[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Contiki 2.4 binary release for Retrocomputing
On Sep 20, 7:40 am, ol...@web.de (Oliver Schmidt) wrote:
> So from that perspective the question would be if it makes sense to
> include some NSC support in the cc65 C library. As we all know a stock
> A2 lacks any type of timer support resulting in the cc65 C library
> missing the clock() API present on most other cc65 targets.
NSC (aka Phantom Clock/Dallas SmartWatch) can probably be used on many
systems, including C64/128 - there are GEOS drivers. If you want
sample code I can send you partial disassemblies of the GEOS and
ProDOS Apple II drivers. It's pretty simple.
> I've been recently thinking about the options for implementing clock()
> on the A2. The result was that I believe that there are more machines
> with some sort of mouse hardware than machines with NSC. Therefore my
> plan is to implement clock() based on the mouse VBL interrupt and
> _not_ based on the NSC. As both the mouse and the NSC can't be
> presumed to be present it would of course make sense to check for both
> on program startup time in order to increase the likelyhood of being
> able to have an actually funtional clock().
How about time()?
Cheers,
Nick.