Operating System

This is a discussion on Operating System within the C++ Programming forums, part of the General Programming Boards category; I was wondering about creating my own operating system???? You guys are prolly like "this kids way out of his ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    208

    Operating System

    I was wondering about creating my own operating system????
    You guys are prolly like "this kids way out of his legue" and stuff eh. I don't exactly mean what u prolly think I mean. I want to have a program that looks pretty much dos based run when the computer starts up. There is nuthing else on the Hard drive. This program only handles a few basic commands. The best example I can think of is sumthing like a atm machine. When it starts up theres the program. I chose to say operating system casue I couldn't think of anything else to call it. I have all the code fiqured out exept for the fact I want the computer to think it is the operating system and execute it on the start-up. This I have absolutly no idea how to do. Could any of you point me in the right direction. I am sure there are a few of you who have created complex operating systems. Well thanks for taking the time to read my post.

    Jeff Paddon
    Undergraduate Research Assistant
    Physics Department
    St. Francis Xavier University

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    you'd have to go in and change the boot sector stuff wouldn't you? There was a topic on this like a few months ago by like a 11 year old wanting to make a GUI OS.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Some of the guys at flashdaddee have a few OS design projects (Ken, Hillbillee, Compuboy)......

    But its not for the faint hearted.....a good working ability with ASM seems to be important.....Take a look at Compuboy's site ......He has done some pretty impressive stuff (bootstrap, floppy controller, video manipulation funcs.....)....

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Don't forget the new gun, rayhenduk(sp?). S/he seems to know a LOT.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    I suggest doing a search on Boot Loaders as that is what you will need. I'm assuming you mean you just insert a floppy disk with your code and boot loader and it writes some stuff to the screen. This is a lot harder than you may imagine. Start with a boot loader and see if you still are interested.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    There are a lot of open-source OS'es, which are very small. Most of them fit on a disk.

    Like:
    - LeeOS
    - ShawnOS

    I don't know about your backgrounds. But I would advice to read something about OS'es and study some examples. Like the OS'es I've mentioned. Also read about the assembly language which applies to your machine.

  7. #7
    Registered User
    Join Date
    May 2002
    Posts
    208
    do u guys know where I should search on this board or on the net. Any reasource sites u recommend preferably with tutorials.

  8. #8
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,670
    The site that were recommended were great. You just have to see for yourself



    ITSA
    Socket Library!

  9. #9
    Registered User
    Join Date
    May 2002
    Posts
    208

    OK

    That is quite a bit harder then I imagined to create a simple OS.
    What about using DOS and haveing your program run at start up.
    That would achieve the effect I am looking for.
    Jeff Paddon
    Undergraduate Research Assistant
    Physics Department
    St. Francis Xavier University

  10. #10
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >What about using DOS and haveing your program run at start up.

    An easy way would be to let it handle by autoexec.bat, by adding your program to the list of actions.

  11. #11
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb I think you have to...

    I think you have to learn ASM. Some things(like the boot sector) can't be done in C/C++, so you have to do it in ASM. You have to create a kernel, also. There are other things, though, that you can do in C and put it together with ASM. A good place to find some links on ASM OS Dev. is http://www.osdev.org.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  12. #12
    Registered User Azuth's Avatar
    Join Date
    Feb 2002
    Posts
    236
    Reading this guys post, Shiro's answer seems to me to be more like what the poster is looking for. The poster however, it would appear, needs a little direction on the difference between a TBUI / GUI and an OS.
    Demonographic rhinology is not the only possible outcome, but why take the chance

  13. #13
    Registered User
    Join Date
    May 2002
    Posts
    208

    ok

    yes what is the difference
    Jeff Paddon
    Undergraduate Research Assistant
    Physics Department
    St. Francis Xavier University

  14. #14
    Unregistered
    Guest
    TBUI and GUI are just interfaces. OS is Operating System, wich means that it would have to handle everything from the hard drive to the monitor.

  15. #15
    Unregistered
    Guest

    OS?

      If you really are looking to write a simple OS, you should try reading the Walkthrough available in the download section of my website. It's not too difficult if you really put your mind to it.

      If you're just looking to have some code started when you boot, though, you should probably just use a simple DOS system disk with an autoexec.bat file which will run your program. Be careful, though, your program would have to be compiled as a raw binary 16-Bit COM file. EXE files don't work in real DOS. You can get ld (DJGPP linker) to do this with the --oformat binary option.

      Hope this helps.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL and my operating system
    By hauzer in forum C Programming
    Replies: 5
    Last Post: 10-31-2008, 12:16 PM
  2. Operating System Project
    By Pete in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 07-15-2004, 09:33 AM
  3. What is a Microsoft Operating System Like?
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 10-21-2002, 07:36 AM
  4. Operating system
    By sopranosomega in forum C Programming
    Replies: 6
    Last Post: 10-07-2002, 06:12 AM
  5. Microsoft = The Best Operating System
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 92
    Last Post: 02-08-2002, 12:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21