TBOS 2 journal

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

TBOS 2 journal

Post by Troy Martin »

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 :wink:

PS: Would writing an interrupt handler to replace BIOS functions work? So programs that are 32-bit can use the "BIOS functions"?
Attachments
tbos-0.2.0.zip
TBOS 0.2.0, just a silly bootsector.
(1.19 KiB) Downloaded 80 times
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: TBOS 2 journal

Post by inflater »

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
The next version will go pmode and load the kernel from FAT.
is a bit challenging, especially if you will write your own pmode bootloader.
(naturally with A20)
You're German right? They seem to use the word "natuerlich" frequently :)
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: TBOS 2 journal

Post by Troy Martin »

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?
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply