Okay, listen up.. If you really want to program your own operating system then get some books on how real operating systems work.
There is a HUGE thread here on this message forum with so many books to choose from.
http://www.mega-tokyo.com/forum/index.p ... eadid=1251
Go to your local library and find what you need. Do interlibrary loans if needed, or reserve books from other libraries in your area. If you're lucky you will find some good books in your local library.
Before you program an OS you need to know exactly what an OS is!
Anything compiled from QBasic will never make a true OS that runs at the system level. Even the smallest QB compiled program spans more than one 64KB segment, and thus you would need a EXE file loader, and this would require very low level programming. I used QBasic extensively for years, and there is no way in hell that it will generate the binary code needed for operating system development.
One way to learn; a place to begin is learning about the history of operating systems. Learn how Unix was developed in its early stages. Pull up some history on MS-DOS or CP/M. MINIX is a very good example operating system to learn from. Even Linux was a development spawn from MINIX.
At least take some time to learn what protected addressing mode is using the 80386 or newer CPU. Don't bother with the 80286, for it will confuse you to learn 80386 basics.
Some things you can experiment with in Quick Basic if you desire is some hardware low level programming. I?m not talking about interrupts, because those rely on services that wont exist when you actually run a real home brewed operating system.
You can program the floppy disk drive using INP and OUT. Some things may need PEEK and POKE but remember that this will be of little help when you learn protected mode programming, if you do.
I?m sure you have seen simple programs in Quick Basic to control the keyboard lights. Simple routines like this is some things that will interest you when developing an OS.
Learn how to program the display using NOTHING more than PEEK/POKE/INP/OUT. Try and make a full display driver that can scroll and manipulate the cursor using only those four Quick Basic functions.
QB may be a good tool to help you learn I/O programming for real-address mode programming, but the information is almost useless for protected 80386 mode.
Most of all, ask yourself if you REALLY want to program your own OS and why. Your own answers will help you learn exactly what it is you want to accomplish.
You don't need to program another operating system if you only want to learn about hardware programming for example. Only program an OS if you have a good reason to. And yes, because you want to "learn" is a good reason/answer.