troy@undergrad.cs.ubc.ca (Timothy David Roy) (05/03/90)
I hope that someone out there can help me with this. I am trying to write a
task switcher in 386 assembly using the protected mode. I am using Phar Lap's
compiler/linker/DOS extender for the job. If ANYONE can provide me with any
helpful hints, code samples etc. I would really appreciate it. My main
problem is creating/finding/using the GDT,LDT and TSS.
while (1)
{
printf("This is task 1\n");
switch();
}
while (1)
{
printf("This is task 2\n");
switch();
}
while (1)
{
printf("This is task 3\n");
switch();
}
This is what I would like to do, have three C task that call a task
switcher written in assembly. So I would end up with output like
This is task 1
This is task 2
This is task 3
This is task 1
This is task 2
etc.
Any help will be gratefully accepted. Please email so I don't waste anymore
bandwidth.
--
Tim Roy | Programming-n: The process of turning your input
troy@undergrad.cs.ubc.ca or | into error messages v.t. Much like banging your
mindlink!a1059@van-bc.uucp | head against the wall but less rewarding.