Page 1 of 3

OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 10:47 am
by Nathan
Hello,
I'm emulating MS-DOS 6.22 on my PPC and I want to develop my OS under this MS-DOS. Without thinking in thee language, what tools can I use to do this?

Best Regards,
Nathan Paulino Campos

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 10:52 am
by f2
If you use assembly as your main language, you can use NASM or FASM. Otherwise, you have a GCC port for MS-DOS: DJGPP.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 10:56 am
by Nathan
Hmm, nice. I already know that I can develop in C and in Assembly, but how about BASIC? :D

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 10:58 am
by f2
Nathan wrote:Hmm, nice. I already know that I can develop in C and in Assembly, but how about BASIC? :D
There is also a FreeBASIC port for MS-DOS.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 11:01 am
by Combuster
DOS on PocketPC? What emulator are you using? Either you're using DosBox and you'll fail over all the things it does not emulate, or you have a full emulator and DOS is not part of the equation.

Also, please shorten up your signature.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 11:03 am
by Nathan
Thanks very much Tommy, I'm going to take a look on the tools. ;)

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 11:03 am
by f2
I think PPC means "PowerPC". He probably uses a Macintosh.
EDIT: +1 for the signature. It is a bit huge!

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 11:04 am
by Nathan
Combuster wrote:DOS on PocketPC? What emulator are you using? Either you're using DosBox and you'll fail over all the things it does not emulate, or you have a full emulator and DOS is not part of the equation.

Also, please shorten up your signature.
I'm using PocketDOS and I only need to reboot the emulator and choose my OS image to test it. ;)

Also, is my signature good now?

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 11:06 am
by f2
Nathan wrote: I'm using PocketDOS and I only need to reboot the emulator and choose my OS image to test it. ;)
Oops :oops: ! I lost!
Nathan wrote: Also, is my signature good now?
This is OK now.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 1:29 pm
by qw
If you want to develop a 16-bits OS, Turbo C is freely available from Borland's website.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 2:00 pm
by Nathan
But with Turbo C, how can I compile the OS to the normal *.bin file(used to boot with GRUB)?

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 5:01 pm
by Combuster
You can't. GRUB doesn't load kernels to the real-mode accessible portions of memory.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 5:06 pm
by Nathan
:cry:
There isn't any way to build my OS in MS-DOS? And how can I compile it to run on GRUB? [-o<

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 6:10 pm
by neon
Of course you can build it in MS-DOS-several solutions have already been provided. Just cant use Grub to boot it.

Re: OS Development Under MS-DOS

Posted: Sun Feb 07, 2010 7:03 pm
by Nathan
I can develop my own bootloader with Assembly and make him read the *.bin that was written to a floppy ;)
But how I can make a *.bin file from Turbo C?