Derrick Operating System

Derrick was a hybrid monolithic 16/32-bit kernel which I wrote in FASM in 2008, as a former member of the OSdev.org community. Derrick can be executed on a machine equipped with at least an 80386 CPU, runs from a floppy disk and will execute everything in ring 0 to be as fast as possible (kernel mode). Derrick was made from boredom and was more like an experiment – there was no main idea and no target goal – I have planned it to be a single-tasking single-purpose kernel, however I knew this design would not catch up so the development was stopped after something over 3 months. Well, at least I have learned myself some x86 assembly language during the process 🙂

The last version, 0.0.2, ran in 32-bit protected mode and had an option to switch occasionally to 16-bit real mode to do legacy disk reading methods. The shell ran in two, user configurable text modes: 80×25 or 80×50, and supported the archaic Czechoslovak ASCII Kamenický encoding (code page) to display locale; up to 3 text-mode fonts in this codepage could be set by the user.  After boot-up, it played the classic “chimes.wav” Windows sound through the internal PC speaker before displaying the command line. And the shell itself was pretty self explanatory and contained a variety of odd functions; from listing the root directory of a floppy disk through rebooting in three different ways: through a purposely invoked CPU triple fault, through the BIOS JMP FAR method or the keyboard controller port 0x60.. It also had a hardcoded application which drew a 256-color VGA “spiral” on the screen; this was compiled in FreePascal outside the kernel and raw copied to the kernel executable afterwards before “distribution”. The offset address of this “application” was also hard-coded to the shell.

Unfortunately, kernel development had been stopped before any support to load external applications could be implemented. And, the source code has yet to be discovered in the “cemetery parts” of my hard drive… So, I am listing this here just out of pure curiosity.

To test it, you need an x86 rig with floppy drive support, or an emulator like VirtualBox, QEMU, Bochs and alike.
The instructions are simple: download the English version of the self-extracting installer, prepare your floppy and reboot the computer with floppy disk inside the drive. That’s all 🙂 And after you’re done, type “EXIT” for shutdown, reboot or to invoke a computer lock-up. IIRC, you can invoke Derrick’s own Screen of Death, which – I believe – was user configurable in color, it is a BSOD by default. 🙂

Derrick Operating System homepage: click here

Leave a Reply

Your email address will not be published.