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"?
TBOS 2 journal
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
TBOS 2 journal
- Attachments
-
- tbos-0.2.0.zip
- TBOS 0.2.0, just a silly bootsector.
- (1.19 KiB) Downloaded 80 times
Re: TBOS 2 journal
Well, it's a bootsector... and it boots and writes characters you type in uppercase. End of testing?
BTW you will have more fun in pmode, when you will not have the bios ints available and you will need to start from scratch. So
BTW you will have more fun in pmode, when you will not have the bios ints available and you will need to start from scratch. So
is a bit challenging, especially if you will write your own pmode bootloader.The next version will go pmode and load the kernel from FAT.
You're German right? They seem to use the word "natuerlich" frequently(naturally with A20)
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English )
Derrick operating system: http://derrick.xf.cz (Slovak and English )
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: TBOS 2 journal
Well I haven't posted recently...
No, I'm not German.
I'm working on my own multi-stage bootloader.
And the point of that bootloader was to show it is possible to write up a text interpreter that runs in 512 bytes and (if I shrink some stuff down and remove extras) doesn't need the bios.
Also, would it be OK to load the kernel in real mode and then have the kernel beginning do the pmode stuff?
No, I'm not German.
I'm working on my own multi-stage bootloader.
And the point of that bootloader was to show it is possible to write up a text interpreter that runs in 512 bytes and (if I shrink some stuff down and remove extras) doesn't need the bios.
Also, would it be OK to load the kernel in real mode and then have the kernel beginning do the pmode stuff?