Post subject: MT86: my multitasking realmode OS Posted: Wed Sep 14, 2011 7:30 am
Newbie Beta Collector
Joined Sun Jan 17, 2010 9:46 pm
Favourite OS Windows 7, Debian Squeeze
linuxlove here posted about an older attempt at an OS i was working on last year, but i've re-done it from scratch as the code was getting ugly and unstructured. i've got something that i am actually starting to like now. the kernel is done in C and assembly.
the OS actually multitasks between processes in pure 16-bit realmode by using a context-switching mechanism on the timer interrupt (IRQ 0)
it has a shell, and supports FAT12 and FAT16 filesystems. there are a few binaries that can be executed. it automatically runs shells on terminals 1 to 4. the shell is very basic, run help for info. it can't even list a directory yet. you can switch between terminals with ctrl-alt-F#, just like linux.
you can run "exec plasma.bin" to see the animated plasma demo...
i have some kind of bug when i fork processes though, it seems to kinda break the parent shell after you execute a couple new forks. MT86 will work on real hardware but it reads files slowly on real floppies because i'm not caching the FAT yet.