Questions on ASM with C++ and Operating Systems and such

This is a discussion on Questions on ASM with C++ and Operating Systems and such within the Linux Programming forums, part of the Platform Specific Boards category; You guys may or may not remember me, but i came a long way with the help of several people ...

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    Question Questions on ASM with C++ and Operating Systems and such

    You guys may or may not remember me, but i came a long way with the help of several people on this website, like Salem, Hunter2, RedHaze, and... uhm... er... thats all i can think of right now.

    I have made a fake OS in windows, and i made things for it in linux and such. It was fairly successful.

    I am now using Mandrake Linux, and i would like to make that Fake OS into a real OS.

    I know i need to do some assembly, but i want to know: how can i make an OS with as little Assembler as possible? Or is it possible to do it without any assembler?

    I can use Windows for this, but i would like to use Mandrake as a development platform mainly because i suck so much at it and need to get better, and my dad also complains when i use windows :P

    I would also like to know: How can i script ASM, C, or C++ from within another C/C++ program and get the same results? Do i have to rebuild it into a scripting language, or is the a system("thisfile", script_it); function?

    Thanks in advanced,
    -Blizzarddog

  2. #2
    Registered User
    Join Date
    Jul 2004
    Posts
    9
    i have to admit, i cant really help you, but: is your OS opensource? would you mind sending me a copy of your sourcecoe? i am interested in different, smaller OSs , and what you told sounds fairly fascinating.
    i ve never thought about writing one on my own, so i would like, to see, how many work it was for you, to get that far.

  3. #3
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Well, i can, but its a Fake Os, meaning it runs on top of another.
    And its not very good, asa it runs in MS Windows Dos Console. So if you really want it, ill send it, but only if you REALLY want it :P
    im just saying that because no one uses dos any more
    This war, like the next war, is a war to end war.

  4. #4
    .
    Join Date
    Nov 2003
    Posts
    307
    Almost.

    Minus generating BIOS interrupts, all of a PC OS can be written in C. I had a copy of Bell Labs Unix for PDP-8's a long time ago. There was a microkernel (the code layer that talks to the hardware) written mostly in asm, and all of the rest of the system including utilties, compilers, and libraries were C.

  5. #5
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    I see...
    well, if you can take care of that part, i think i might be able to make this think work

    You still want that source code? its not very big... but you gotta get the FMOD Sound Library :P
    This war, like the next war, is a war to end war.

  6. #6
    Registered User
    Join Date
    Jul 2004
    Posts
    9
    i would like to see it. i cant promise i will use it , but i will have a look at it. send it to 0xff at gmx dot net
    btw: is it posix-compatible?

Popular pages Recent additions subscribe to a feed

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