[A89] Re: C Problems
[Prev][Next][Index][Thread]
[A89] Re: C Problems
There are OS timers that will work if you haven't disabled interrupts (in system.h).
example from TIGCC docs:
OSFreeTimer (USER_TIMER);
OSRegisterTimer (USER_TIMER, 5*20);
while (!OSTimerExpired (USER_TIMER));
They have 1/20 second intervals. Also, if you are disabling interrupts, you could look in the
source of ngetdelay. (89/asm/source/routines at ticalc.org) It allows key reads with a delay
before the read with interrupts disabled. It has an assembly routing for waiting a certain number
of milliseconds.
jeff
> Secondly, maybe I'm over-looking something, but is there any good way to
> pause for a short amount of time in TIGCC? I would like to slow the game
> down, and I don't like empty for-loops, but I will use one if I have to.
>
> Thanks,
> -Dave
> "You puff the poets of other days, / the living you deplore. / Spare me
> the accolade: your praise / Is not worth dying for." - Martial
> ________________________________________________________________
> GET INTERNET ACCESS FROM JUNO!
> Juno offers FREE or PREMIUM Internet access for less!
> Join Juno today! For your FREE software, visit:
> http://dl.www.juno.com/get/tagj.
>
>
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
Follow-Ups:
References: