quote:Originally posted by The Auditor:To my knowledge, you will only be able to get it to run under one or the other.its a thing about C++.The HUO (Hackers Unlimited Organization, see profile) is working on an OS, BSD, or possibly Darwin based.. i woulod advise the learning of ASM, it will only benefit you.The Auditor[ November 14, 2002: Message edited by: The Auditor ]
quote:Like many times before, Microsoft is re-inventing the wheel and opting for something other than round.
-t.
quote:Originally posted by void main:Believe it or not, it's not as hard as you are making it. If you make the right kind of COM file in assembly all you have to do is write it to the floppy starting at the first sector (the hardware automatically loads and executes the first sector on disk). You can write your program to raw floppy using debug, but it's easier to use "dd" or "rawrite".Now since it only automatically loads and executes the first sector of the floppy (512 bytes) if your program is bigger than that you may have to call a BIOS interrupt to load the 2nd through ?? sectors into memory and jump to that memory location to continue execution. But I can't remember if the programs I used to write were small enough to fit entirely on the first sector. The helloworld.asm example on that linuxassembly site I linked to you was only around 400 bytes when assembled.And by the way, you don't "compile" a *.com file. You compile source into object code using a compiler (could be C, C++, Pascal, etc). You "assemble" assembly code into object code. And in both cases you use the linker to create the executable file from the object code (weather it be *.COM, *.EXE, a.out, elf, etc). But you probably already know this....
quote:Originally posted by Ex Eleven / b0b 2.1:You could just make a bootable MS-DOS and have your program start in autoexec and use a Hex editor so it says "Starting StrykerOS" instead of "Starting Windows 95" or whatever it used to say!