Could that/this make a real operating system?

This is a discussion on Could that/this make a real operating system? within the C++ Programming forums, part of the General Programming Boards category; It has alot of files in the zip. Not all of them are included in the main, or kernal.h, witch ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    76

    Could that/this make a real operating system?

    It has alot of files in the zip. Not all of them are included in the main, or kernal.h, witch I don't get.

    http://www.planet-source-code.com/vb...tp%2FC67189481


    -- That, I don't get how to install it to a pc, plus it seems too easy.
    Can that really run on a computer on it's own?
    Last edited by azjherben; 09-11-2009 at 08:44 PM.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,578
    Write properly and I'll take you seriously.
    And fix the link.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    76
    What do you mean?
    The link works....

    Okay, not anymore....
    Fixed!

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,578
    The headers are being included by other headers or source files. For instance, to get from kernel.cpp to video.h:

    IOStream.h -> IStream.h -> OStream.h -> video.h
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Getting the machine to boot and print "Welcome to my first OS!" is one thing - creating a full-fledged operating system with a file-system, hardware interfaces, networking, GUI, etc, is quite another. If you're really serious about this sort of project, visit an Os-Dev forum, collect lot's of reference material (Ralph Brown's Interrupt List, for example), and be prepared to write lot's of code. It's probably a good idea to have spare computer that you aren't worried about screwing up, as well.

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    76
    Quote Originally Posted by Sebastiani View Post
    Getting the machine to boot and print "Welcome to my first OS!" is one thing - creating a full-fledged operating system with a file-system, hardware interfaces, networking, GUI, etc, is quite another. If you're really serious about this sort of project, visit an Os-Dev forum, collect lot's of reference material (Ralph Brown's Interrupt List, for example), and be prepared to write lot's of code. It's probably a good idea to have spare computer that you aren't worried about screwing up, as well.
    I would just like the machine to boot and print something. That would be a good start. Then if I can learn how to apply a pixel, I can do alot more.


    How should I compile, and install this as an os?

  7. #7
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Sebastiani View Post
    (Ralph Brown's Interrupt List, for example)
    Ralf Brown's Interrupt List
    Attached Images Attached Images  
    Last edited by abachler; 09-11-2009 at 09:39 PM.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  8. #8
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Wow, I didn't know it was in print, as well. Pretty cool. Oh, and the psychotic smile is a nice touch, Abachler.

  9. #9
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Quote Originally Posted by azjherben View Post
    I would just like the machine to boot and print something. That would be a good start. Then if I can learn how to apply a pixel, I can do alot more.


    How should I compile, and install this as an os?
    The project is missing a bootloader, to begin with. Plus you'll need a way to get the bootloader into the bootsector. For that you'll need something like rawrite, or similar (although you could actually do it with the 'debug' program that comes with Windows). At any rate, I'd recommend something like John Fine's OS starter kit - I tried it a few years back without much trouble.

  10. #10
    Registered User
    Join Date
    Mar 2009
    Posts
    76
    Thanks for the help and replys.
    I relize this isn't really C++ specific, but, how do I copy a bootsector (asm boot.bin) to a cd. I know how to copy it to a floppy with this program, I got, but I don't have floppy disks, just cds.

  11. #11
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,578
    It's here. Download bootf02.zip. Extract it to a folder. The file you are interested in is BOOTF.BIN. Ignore the kernel there.

    You'll need PartCopy to install it.

    To install it to a floppy-drive on A:
    PARTCOPY bootf.bin 0 3 -f0 0
    PARTCOPY bootf.bin 3E 1C2 -f0 3E
    EDIT:
    Didn't see your last question before replying. Was adding to Sebastiani post.
    To install it to a CDROM run PartCopy. It's a Windows GUI application. I'm unsure as to the addresses to use though
    Last edited by Mario F.; 09-11-2009 at 10:33 PM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  12. #12
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Well, if you are going to write your own boot loader you will be doing it in assembly, at least the first part. OS Development can help you a lot, it has a wiki and a forum. As for making a bootable CD, there are open source utilities for converting a bootable floppy or hard drive to a CD. A true bootable CD though you will need to write a bootloader specifically for that. CD's get a 2048 byte bootsector, so it actualyl makes it easier to write a full featured single stage bootloader.

    Quote Originally Posted by Sebastiani View Post
    Wow, I didn't know it was in print, as well. Pretty cool. Oh, and the psychotic smile is a nice touch, Abachler.
    I think it's actually out of print, the edition i have is the only one I've ever found and it's from 1991
    Last edited by abachler; 09-11-2009 at 10:46 PM.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  13. #13
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by abachler View Post
    You scare me on a consistent basis. I'm just scrolling through the topic, and BOOM! There's abachler.. Looking like he belongs on some 90's late-night infomercial spouting non-sense about money back from the government. Money back back back, now now now! Buy this book!!!
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  14. #14
    Registered User
    Join Date
    Mar 2009
    Posts
    76
    Quote Originally Posted by Mario F. View Post
    It's here. Download bootf02.zip. Extract it to a folder. The file you are interested in is BOOTF.BIN. Ignore the kernel there.

    You'll need PartCopy to install it.

    To install it to a floppy-drive on A:


    EDIT:
    Didn't see your last question before replying. Was adding to Sebastiani post.
    To install it to a CDROM run PartCopy. It's a Windows GUI application. I'm unsure as to the addresses to use though
    Exactly, I already have PartCopy, I just need to know these "addresses".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. Check Operating System
    By willc0de4food in forum C Programming
    Replies: 2
    Last Post: 05-07-2005, 11:46 AM
  3. Replies: 6
    Last Post: 01-03-2003, 05:40 PM
  4. Operating system
    By sopranosomega in forum C Programming
    Replies: 6
    Last Post: 10-07-2002, 07:12 AM
  5. Programming Puns
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 44
    Last Post: 03-23-2002, 04:38 PM

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