Re: interrupt routines ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Don,

I am not sure why you do not want to use the time() function, but if
you insist on counting ticks, you can peek4u(#46C), those four bytes
hold the number of ticks since midnight. The only advantage of this
method, apart from being probably much faster than the time() routine,
is that the update of the location is not apparently affected by the
tick_rate(). So you can have both, a finer resolution timer using a
suitable tick rate as well as your rough tick count - if you want to.
jiri

-----Original Message-----
From: Don Pomplun <k2hug at HOME.COM>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Sunday, February 21, 1999 7:19 PM
Subject: interrupt routines ?


>Reading the examples & doc, I get the impression that if I redirect an
>interrupt, like $1C, I can only have it execute a machine lang routine.
>
>My app wants to keep track of ticks, and after so many, go update a bunch
>of stuff  that I don't want to do in mach code.  e.g. after ~200 ticks, I
>want to call a Euphoria procedure.
>
>Seems like about what I'll get, if I have to keep it simple, is to
>increment a count, then periodically poll it to see if "it's time".  So
>unless I want to do it more than once a second, or sort of accurately, I
>may as well just periodically call "date" and see what time it is.
>
>Am I SOL?
>
>TIA
>Don
>k2hug at home.com
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu