I assume you mean 16-bit, rather than 8- for the task switching comments.
I have written a number of task switchers for both z80's (8-bit) and 8x86 processors
(16-bit). But I would recommend that you stay somewhat close to the
Linux/UNIX model, which basically saves the cpu registers on the running
process's stack in the same order, regardless of software or hardware interrupt,
then just reloads the stack pointer to the next runnable task...
Greg
On Monday, March 22, 1999 9:02 AM, Michael Strates [SMTP:[EMAIL PROTECTED]] wrote:
> On Sun, 21 Mar 1999, Jakob 'sparky' Kaivo wrote:
>
> JsK> This sounds insanely great! Have you looked at working to do
> JsK> some sort of a merge between this and ELKS? I think it would be
> JsK> a tremendous boon to ELKS if it could run DOS programs, and the
> JsK> code is already there under GPL in FreeDOS. If/when you
> JsK> distirbute it, please post source as well as the binaries.
>
> Hmm.. Is there any code out there that is 8-bit and quite reliable at task
> switching. Its a pity I can't get Dosshell's source code (remember, from
> MS-DOS 5.0?). I'm going to make a simple task switcher and then add some
> timing to it to come up with a pseudo-stable multitasking environment.
>
> --
> e-mail: [EMAIL PROTECTED] www: http://www.croftj.net/~mstrates
> See keyservers for PGP info. Linux! The OS of my Choice!
> "Once you have flown, you will walk the earth with your eyes turned
> skyward, for there you have been, and there you long to return."
> - Leonardo da Vinci, and below an extract from John Fogerty's song:
> Hey, Tonight - Gonna be tonight- Don't you know I'm flyin'- Tonight
>
> # If you want to go up, pull back on the yoke.
> # If you want to go down, pull back a little more.
> # If you want to go down real fast and spin around and around and
> around, just keep pulling back. -Aviation Proverb
>