[Coco] OS9 NITROS9 Accurate timer/clock

L. Curtis Boyle curtisboyle at sasktel.net
Wed May 29 12:34:29 EDT 2019

I *think* the proper mem location in MMU block 0 that contains the current tick counter is $002E (1 byte) (D.Tick), if you want to try the F$CpyMem trick.

L. Curtis Boyle
curtisboyle at sasktel.net

> On May 29, 2019, at 8:46 AM, L. Curtis Boyle <curtisboyle at sasktel.net> wrote:
> Yes, that is normally the case. There is a direct page in the system memory that contains the 1/60th sec tick (VSYNC) counter that rotates 0 to 59, that you can read via an F$CpyMem command, but you will still need the “normal” time to figure out if the seconds wrapped. 
> Alternatively, if you have VRN installed, you can set up VIRQ’s based on the the number of 1/60th sec ticks you want. 
> Sent from my iPhone
>> On May 29, 2019, at 7:53 AM, Walter Zambotti <zambotti at iinet.net.au> wrote:
>> I'm looking for a os9 call that can return a better timer resolution than 1 second. 
>> There doesn't seem to be one! 
>> Walter 

More information about the Coco mailing list