View Full Version : Questions on ASM with C++ and Operating Systems and such

07-12-2004, 08:11 PM
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,

07-15-2004, 10:26 AM
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.

07-15-2004, 01:19 PM
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 :(

jim mcnamara
07-15-2004, 02:38 PM

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.

07-16-2004, 01:48 PM
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

07-25-2004, 12:44 PM
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?