TBOS 2 journal
Posted: Mon Sep 01, 2008 9:43 pm
Hope this is an OK forum to post this in...
So, after a little venture into learning OS programming with MikeOS, I'm writing my own kernel in assembly, and it's mostly free of code from other OSes. It's going to be in protected mode (naturally with A20) and possibly have support for V8086 mode.
So far I have a keyboard driver that uses no interrupts, and works in both real mode and pmode. So far I've only tested it in real mode, taking up 509 out of 510 bytes for the bootsector. It takes alphabetic characters, backspace (erases characters), spacebar, and enter. Just type and shut down when you're done.
NOTE: This boot sector uses int 10h for printing characters, but uses I/O ports 60h and 64h for the keyboard. The next version will go pmode and load the kernel from FAT.
Comments, questions, and suggestions are welcomed. If they weren't I wouldn't post this here
PS: Would writing an interrupt handler to replace BIOS functions work? So programs that are 32-bit can use the "BIOS functions"?
So, after a little venture into learning OS programming with MikeOS, I'm writing my own kernel in assembly, and it's mostly free of code from other OSes. It's going to be in protected mode (naturally with A20) and possibly have support for V8086 mode.
So far I have a keyboard driver that uses no interrupts, and works in both real mode and pmode. So far I've only tested it in real mode, taking up 509 out of 510 bytes for the bootsector. It takes alphabetic characters, backspace (erases characters), spacebar, and enter. Just type and shut down when you're done.
NOTE: This boot sector uses int 10h for printing characters, but uses I/O ports 60h and 64h for the keyboard. The next version will go pmode and load the kernel from FAT.
Comments, questions, and suggestions are welcomed. If they weren't I wouldn't post this here
PS: Would writing an interrupt handler to replace BIOS functions work? So programs that are 32-bit can use the "BIOS functions"?