Mail Archives: djgpp/2000/03/26/02:49:36
A very interesting (=difficult to impossible) topic of
programming with (MS)-DOS is multitasking. My idea was to
execute two or more EXE-files (nearly) at the same time by
reading them manually into RAM, interpreting&executing some
commands, saving all the registers into RAM, then switching
to the other application, restoring its previously saved
CPU registers and executing some commands and so on...
Does anybody have any idea how this could be made work?
The DJGPP debug support does something similar to load the debuggee
and jump between it and the dbugger's own code. It's messy, but it
does work. You could begin by studying how does the DJGPP debug
support does this. Type "info libc alpha run_child" to start. The
docs is minimal, so you should be prepared to read the sources and ask
questions.
- Raw text -