Michael J. Mahon wrote:
> In article <3E766B47.8040200@mindspring.com>, Rob
> <rsteinmetz@mindspring.com> writes:
>
>
>> Dosius wrote:
>>
>>>> The apple libraries don't have an implementation for the
>>>> clock() function,
>>>
>> and
>>
>>>> therefore no CLK_TCK constant.
>>>
>>>
>
> What is needed is not the time of day, but a source of regular timer
> interrupts. Some clock cards can provide such interrupts, but I
> would expect that they are needed at around 60Hz, like VBL.
This the the typical value,as defined in time.h except for a few systems
which use 50 hz.
>
> Any peripheral card with a 6522 (like a Mockingboard) can generate
> such interrupts, as can a mouse card, or a //c or IIgs.
I wouldn't think that a Mockingbird would be a widely used card in an
Apple ][ nor would a mouse board. The base solution should be as
universal as possible. I would guess a clock card would be more likely
to be present, although my no means universal.
>
> -michael
>
Then the problem is finding the most common source of interrupts to
define the clock() function, or a general function for generating
interrupts.
It sounds like cc65 needs a clock.s module(s)for the apple2 library.
What is the best place in an Apple ][ (or + or e) to get an interrupt?
Since a //c is a sort of standardized, loaded ][e, perhaps that is the
place to start.