[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Contiki 2.4 binary release for Retrocomputing
Hi Nick,
>> 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.
If you don't tie any expectations to sending me code than I'm happy to
receive it and store it away in order to check it out when the time
has come...
>How about time()?
Good question :-)
@Michael: time() is the time-of-day function you were thinking
about...
After thinking about the pro's and con's for some time I decided to
implement time() simply by calling the appropriate ProDOS function.
The con's:
- Only available when running ProDOS 8 (not DOS 3.3)
- No seconds
THe pro's:
- Works with any clock supported by the currentl yrunning ProDOS
(either via built-in or loaded/patched driver
So a NSC *is* already used (at least indirectly via ProDOS) by the
cc65 C library.
Regards,
Oliver