OS Development Under MS-DOS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

OS Development Under MS-DOS

Post 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
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: OS Development Under MS-DOS

Post 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.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: OS Development Under MS-DOS

Post by Nathan »

Hmm, nice. I already know that I can develop in C and in Assembly, but how about BASIC? :D
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: OS Development Under MS-DOS

Post 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.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: OS Development Under MS-DOS

Post 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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: OS Development Under MS-DOS

Post by Nathan »

Thanks very much Tommy, I'm going to take a look on the tools. ;)
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: OS Development Under MS-DOS

Post by f2 »

I think PPC means "PowerPC". He probably uses a Macintosh.
EDIT: +1 for the signature. It is a bit huge!
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: OS Development Under MS-DOS

Post 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?
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: OS Development Under MS-DOS

Post 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.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: OS Development Under MS-DOS

Post by qw »

If you want to develop a 16-bits OS, Turbo C is freely available from Borland's website.
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: OS Development Under MS-DOS

Post by Nathan »

But with Turbo C, how can I compile the OS to the normal *.bin file(used to boot with GRUB)?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: OS Development Under MS-DOS

Post by Combuster »

You can't. GRUB doesn't load kernels to the real-mode accessible portions of memory.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: OS Development Under MS-DOS

Post 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<
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: OS Development Under MS-DOS

Post by neon »

Of course you can build it in MS-DOS-several solutions have already been provided. Just cant use Grub to boot it.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: OS Development Under MS-DOS

Post 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?
Post Reply