Re: dos wait loop

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

Tone Škoda wrote:
> 
> jacques deschênes wrote:
> > 
> > 
> > maybe this code I wrote in 1996 could help you with delay smaller than 1
> > second.
> > just call delay() like you would call sleep() 
> 
> 
> it doesn't seem to work right: task manager shows 100% CPU usage.
> 
> what i basically need is doEvents() version for dos. some asm command? i was
> searching
> web, maybe asm hlt ?
> 

MS-DOS is not designed to know that other programs may also be running at the 
same time. What are you trying to achieve by 'waiting'?

Anyhow, if you really must, I recommend trapping INT 1C, and when you 
want to 'wait', just count the appropriate number of ticks (65535 per hour)
and when not waiting, just ignore the interrupts.

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

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

Search



Quick Links

User menu

Not signed in.

Misc Menu