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

If you are new to development, plan on spending some time here before visiting the other forums.

Moderator: Moderators

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

Postby usman_the_great » Tue Jun 08, 2010 4:50 pm

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.
usman_the_great
 
Posts: 5
Joined: Wed May 19, 2010 3:06 pm

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

Postby accelleon » Wed Jun 09, 2010 11:49 pm

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.
accelleon
 
Posts: 15
Joined: Mon Dec 07, 2009 3:41 am

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

Postby Hmmm » Thu Aug 12, 2010 8:31 pm

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.
Hmmm
 
Posts: 2
Joined: Thu Aug 12, 2010 8:27 pm

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

Postby chibicitiberiu » Fri Aug 13, 2010 6:45 am

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.
chibicitiberiu
 
Posts: 22
Joined: Sat Jul 17, 2010 7:55 am


Return to Beginners

Who is online

Users browsing this forum: No registered users and 1 guest

cron