12-03-2004, 11:08 PM
I got the idea today that it might be possible to use QB to create a simple OS if I strip out the MS-DOS header information and make a small program for the bootsector to load it up.
I understand that many of the MS-DOS interrupts wouldn't exist, but there would be int 9 disk services to create a basic FAT file system driver, video interrupts and memory locations to create a basic interface, and even the keyboard interrupts.
Has anyone tried running QB code without DOS before?
Is the executable format my only barrier to running code directly?
Since I know how the FAT12 filesystem is laid out, and how to use bios disk functions, is there any real barrier to creating a minimal disk driver?
I'm curious because I'd like to prove, before qb fades away in the face of it's superior descendant, that an OS in QBasic isn't the impossibility people like to imagine it is.
I understand that many of the MS-DOS interrupts wouldn't exist, but there would be int 9 disk services to create a basic FAT file system driver, video interrupts and memory locations to create a basic interface, and even the keyboard interrupts.
Has anyone tried running QB code without DOS before?
Is the executable format my only barrier to running code directly?
Since I know how the FAT12 filesystem is laid out, and how to use bios disk functions, is there any real barrier to creating a minimal disk driver?
I'm curious because I'd like to prove, before qb fades away in the face of it's superior descendant, that an OS in QBasic isn't the impossibility people like to imagine it is.