How do I create a bootloader with visual studio?

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
Shadowhunter9636
Posts: 4
Joined: Tue Aug 10, 2010 6:09 pm
Contact:

How do I create a bootloader with visual studio?

Post by Shadowhunter9636 »

I want to make my own OS, so I decided to start with the bootloader. I want to know how to use Visual Studio to make a bootloader and how to use Bochs to test it. I am using C++ and my platform is Windows XP. I searched it up on Google, but the results were either irrelevant or skipped information I needed. Please help.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: How do I create a bootloader with visual studio?

Post by gerryg400 »

Have you read the wiki ? There is more information there can can fit in a forum reply.
If a trainstation is where trains stop, what is a workstation ?
Shadowhunter9636
Posts: 4
Joined: Tue Aug 10, 2010 6:09 pm
Contact:

Re: How do I create a bootloader with visual studio?

Post by Shadowhunter9636 »

Can you give me the link to this page? I can't find it.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: How do I create a bootloader with visual studio?

Post by gerryg400 »

The wiki is there ==> http://wiki.osdev.org/Main_Page. I'm not sure what your specific question is. There are pages on assembly language, bootloaders, Bochs, Visual Studio and much more.
If a trainstation is where trains stop, what is a workstation ?
Shadowhunter9636
Posts: 4
Joined: Tue Aug 10, 2010 6:09 pm
Contact:

Re: How do I create a bootloader with visual studio?

Post by Shadowhunter9636 »

I meant the link to the page in the wiki explaining how to create a bootloader with visual studio.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: How do I create a bootloader with visual studio?

Post by gerryg400 »

I don't think there's a single page that'll tell you how to do it. You're going to have to ask specific questions to get your answer and build up your knowledge as you go. You need to provide information about what you know and what you've done so far so that people can answer your questions.

BTW, may I ask why you want to use Visual Studio ? I feel that for a beginner that there are more suitable tools.

EDIT: If you were to use Cygwin, for example, you could follow many of the tutorials in the wiki without having to make changes.
If a trainstation is where trains stop, what is a workstation ?
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: How do I create a bootloader with visual studio?

Post by neon »

Hello,

There isnt really anything special involved here. As long as you know how to set up MSVC and find a nice way of allowing your C code to call Bios services, its shouldnt be that difficult as those are the main obstacles. I can provide more info of how I did it if requested. Not recommended for beginner system developers though do to lack of tutorials.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Shadowhunter9636
Posts: 4
Joined: Tue Aug 10, 2010 6:09 pm
Contact:

Re: How do I create a bootloader with visual studio?

Post by Shadowhunter9636 »

@neon

I sent you a PM. I want to know how you did it.
gboers
Posts: 5
Joined: Fri May 07, 2010 7:27 am

Re: How do I create a bootloader with visual studio?

Post by gboers »

Hello Shadowhunter9636,

A while ago I stumbled over a nice article on CodeProject which explains on how to do this.
Here is the link for you : Click here

I hope that I was of any help to you.
Post Reply