Re: A86: Time


[Prev][Next][Index][Thread]

Re: A86: Time




> Is there any way of accessing the CPU clock from a program?  I'm
> assuming that there IS a clock chip buried in my calc's guts
> somewhere...

Yes, you could install an interrupt to count interrupt cycles (200
per second).

> I have made a couple clock and event-timer programs in Basic and would
> like to convert them to Asm.  They use loops to get a fairly accurate
> idea of hours, minutes, and seconds.  I could use loops in the Asm
> version, but I was wondering if there was an easier way.  Can you count
> interrupt cycles from a program?  They are pretty constant...

An accurate clock on a TI-8x is impossible.  The battery power, the
room temperature, and (for basic) the available memory all affect
the timing speed.  It varies by as much as 15%.