Page 1 of 1

BIOS Interrupts -> Sleep funktion ???

Posted: Thu Mar 09, 2006 12:00 am
by Storm.Xapek.de
Is there a bios interrupt witch make a sleep funktion?
I think 1 sec.?

Re: BIOS Interrupts -> Sleep funktion ???

Posted: Fri Mar 10, 2006 12:00 am
by blackcatcoder
for what do you need an sleep funktion ???

Re: BIOS Interrupts -> Sleep funktion ???

Posted: Fri Mar 10, 2006 12:00 am
by carbonBased
I'd imagine for some form of driver timing.

In any event, a sleep function should really equate to a task switch (ie, don't spin in the current process, switch to others, so they can do something) and mark the current task as blocked based on a timeout.

Your scheduler will then mark the task as active once the timeout has elapsed.

--Jeff

Re: BIOS Interrupts -> Sleep funktion ???

Posted: Sat Mar 11, 2006 12:00 am
by Hery
yes, there is, you can use interrupt 15h function 86h (AH=86h), in registers CX and DX should be information how long you want to wait...
of course you can use irq0 (also in PMODE)