Page 1 of 1

Simplest c++ os dev tutorial help????????

Posted: Tue Jun 08, 2010 4:50 pm
by usman_the_great
Hello,
Is there is a simplest os tutorial if not so please help me and write a tutorial on a simple c++ os which just print line on the screen and print also colours not words.

Re: Simplest c++ os dev tutorial help????????

Posted: Wed Jun 09, 2010 11:49 pm
by accelleon
So you want a simple tutorial that shows you how to make an OS that prints a string of text onto the screen using VGA?

I don't know any tutorials that show how to print a string of text onto the screen in VGA mode in C++. However the Graphics Chapter 1 shows you how to plot pixels in Assembly.

Also a good VGA tutorial (its quite old, and its for MS DOS so a little tweaking is needed) is here.

And the simplest c++ os tutorial would probably be the one that brokenthorn has here :D. (and i'm being serious). Remember OS dev isn't the simplest of topics.

Re: Simplest c++ os dev tutorial help????????

Posted: Thu Aug 12, 2010 8:31 pm
by Hmmm
Thanks for the links, ive written the assembly bootloader and entered 32 bit mode. C++ is really what im better at so want to develop the kernel in C++ as a basic command line program.

Good tutorials, would not have gotten this far with out them.

Re: Simplest c++ os dev tutorial help????????

Posted: Fri Aug 13, 2010 6:45 am
by chibicitiberiu
usman_the_great wrote:Hello,
Is there is a simplest os tutorial if not so please help me and write a tutorial on a simple c++ os which just print line on the screen and print also colours not words.


If you want to use the BIOS interrupts, you need to be in real mode, 16 bits, and you also need a 16bits C++ compiler, like Turbo C...

But you can also make it in protected mode. You have to change mode before entering protected mode (in your bootloader code).
(add before entering protected mode the lines:
mov ah, 00
mov al, <your preferred mode, for example 13h for 320x200x256>
int 10h )

Here it is: http://www.brackeen.com/vga/ One of the best tutorials I found about programming in graphics mode.