Real-mode multitasking...
Posted: Sun Jun 15, 2003 11:00 pm
I can't seem to get INT 1C to reenter after being entered once.
I made a simple program that prints either A or B depending on what's
the current task. Once INT 1C is called it prints the A and then
exits into task B but once INT 1C is then called again it locks up.
My code should work. I checked it many times. When returning to the
next task using push,push,IRET it *does* enter the task correctly
but once INT 1C is called again it locks. The stacks seem to be setup
correctly and everything in theory should work. I also ran (some) other
peoples demos of real-mode multitasking and even their demos did the
same wierd thing. I did the testing on Bochs along with DOSEMU and
both didn't work. Am I going nuts or is there ANY reason for this?
Anyways, could someone point me to real-mode multitasking examples
please so I can test them. I prefer assembly. I plan to make a
piggyback OS for DOS that multitasks both coms and exes and swaps to
XMS or EMS allowing DOS to do work that modern OS's do.
Any help and examples would be very useful right now.
%THANKS!%
PS: Sorry if the text looks funny, no thanks to Lynx
I made a simple program that prints either A or B depending on what's
the current task. Once INT 1C is called it prints the A and then
exits into task B but once INT 1C is then called again it locks up.
My code should work. I checked it many times. When returning to the
next task using push,push,IRET it *does* enter the task correctly
but once INT 1C is called again it locks. The stacks seem to be setup
correctly and everything in theory should work. I also ran (some) other
peoples demos of real-mode multitasking and even their demos did the
same wierd thing. I did the testing on Bochs along with DOSEMU and
both didn't work. Am I going nuts or is there ANY reason for this?
Anyways, could someone point me to real-mode multitasking examples
please so I can test them. I prefer assembly. I plan to make a
piggyback OS for DOS that multitasks both coms and exes and swaps to
XMS or EMS allowing DOS to do work that modern OS's do.
Any help and examples would be very useful right now.
%THANKS!%
PS: Sorry if the text looks funny, no thanks to Lynx