Is there a bios interrupt witch make a sleep funktion?
I think 1 sec.?
BIOS Interrupts -> Sleep funktion ???
-
- Member
- Posts: 132
- Joined: Wed Nov 03, 2004 12:00 am
- Location: Austria
- Contact:
Re: BIOS Interrupts -> Sleep funktion ???
for what do you need an sleep funktion ???
- carbonBased
- Member
- Posts: 382
- Joined: Sat Nov 20, 2004 12:00 am
- Location: Wellesley, Ontario, Canada
- Contact:
Re: BIOS Interrupts -> Sleep funktion ???
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
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 ???
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)
of course you can use irq0 (also in PMODE)