Re: 1/100
Aku,
you do not need interrupts. A simple peek does the trick. The timer
below indicates ticks (18.2 per second) since midnight. jiri
-- file : timer.ex
-- author: jiri babor
-- date : 99-04-22
-- email : jbabor at paradise.net.nz
while get_key() = -1 do
position(1,1)
printf(1, "%7d", peek4u(1132))
end while
----- Original Message -----
From: "Aku" <aku at INBOX.AS>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, December 26, 2000 7:19 PM
Subject: Re: 1/100 second
> can you give me an example? I dont understand well.
>
______________________________________________________________________
> J> not sure what does that in Euphoria, but you could use the
dos_interrupt
> J> thing to get the timer ticks int 1A AH=00 returns a 32 bit tick
count
> J> (since midnight) in the cx:dx registers. and if your are really
fast you
> J> can peek at 0040:006c for the lowbyte Same count either way.
> J> 55ms or 18.2 times a second, which won't give you an exact 1/100
...
>
|
Not Categorized, Please Help
|
|