Ughhh, multitasking help again...
Posted: Tue Jul 16, 2002 11:26 am
I have a few questions related to multitasking in real-mode...
Whats the basics?
How is it done?
How do I get the IP of a task once the timer hooked routine is entered (to save for future reentering).
--->So far here is a basic diagram of what I have made...
>hook timer interrupt 1Ch
>task a code
>task b code
>main code loop
>once main exits, unhook timer interrupt to resume normal
>once inside hooked timer code, reenter current task at segment:offset
The problem here is that it reenters the task at its starting offset, not its offset+IP so how do I do this???????
Thanks for ideas, help, or links. *THANKS!* Kg.
PS: Once I get a working multitasking demo I will release it for others to learn from
Whats the basics?
How is it done?
How do I get the IP of a task once the timer hooked routine is entered (to save for future reentering).
--->So far here is a basic diagram of what I have made...
>hook timer interrupt 1Ch
>task a code
>task b code
>main code loop
>once main exits, unhook timer interrupt to resume normal
>once inside hooked timer code, reenter current task at segment:offset
The problem here is that it reenters the task at its starting offset, not its offset+IP so how do I do this???????
Thanks for ideas, help, or links. *THANKS!* Kg.
PS: Once I get a working multitasking demo I will release it for others to learn from