Page 2 of 3
Re: OS Development Under MS-DOS
Posted: Sun Feb 07, 2010 7:19 pm
by DednDave
i am no turbo C expert
but, perhaps you could write it as a tiny model (.COM) program
Re: OS Development Under MS-DOS
Posted: Sun Feb 07, 2010 7:25 pm
by Nathan
No, I want to build a OS, not a Windows 3.11
Re: OS Development Under MS-DOS
Posted: Sun Feb 07, 2010 7:37 pm
by neon
I personally recommend against flat binary kernels tbh. I would just parse the output executable of the compiler and linker of your choice and use that.
If you really want to go flat binary, you might be able to use exe2bin to convert the EXE to a flat binary. Or, you can just use a .COM file (its a flat binary) if Turbo C supports it.
Re: OS Development Under MS-DOS
Posted: Mon Feb 08, 2010 2:42 am
by qw
Nathan,
DednDave is right. Compile in TINY memory model and link to a COM file (TLINK can do this without EXE2BIN). Provide your own C0T.OBJ with ORG 0 (or ORG anything you like) instead of ORG 100H. Write a bootloader to load this file from your boot disk.
Roel
Edit: fixed typo.
Re: OS Development Under MS-DOS
Posted: Mon Feb 08, 2010 2:45 am
by Nathan
Very nice!
I'm going to test this and post here what I got.
Re: OS Development Under MS-DOS
Posted: Mon Feb 08, 2010 2:48 am
by qw
neon wrote:I personally recommend against flat binary kernels tbh. I would just parse the output executable of the compiler and linker of your choice and use that.
I agree with you but I wouldn't recommend MZ-EXE.
Nathan,
Good luck!
Roel
Re: OS Development Under MS-DOS
Posted: Mon Feb 08, 2010 1:26 pm
by neon
Hello,
Hobbes wrote:I agree with you but I wouldn't recommend MZ-EXE.
While I would agree that EXE might not be best for beginners here, I would encourage anyone to use what is best for their projects' goals, whether it is EXE or not.
Re: OS Development Under MS-DOS
Posted: Tue Feb 09, 2010 9:30 am
by qw
Then the OP may like
BootProg.
Re: OS Development Under MS-DOS
Posted: Thu May 13, 2010 8:59 am
by Nathan
Hobbes wrote:Then the OP may like
BootProg.
That's an awesome tool, but someone here already tried to use it?
Also, using Turbo C, as the compiler and BootProg as my bootloader. I can do a OS running VESA mode(or like VESA), as Windows 3.11?
Best Regards.
Re: OS Development Under MS-DOS
Posted: Thu May 13, 2010 2:37 pm
by Combuster
Necromancy alert.
Re: OS Development Under MS-DOS
Posted: Thu May 13, 2010 3:22 pm
by Nathan
Combuster wrote:Necromancy alert.
Could you please isntead of make jokes, help me?
Re: OS Development Under MS-DOS
Posted: Thu May 13, 2010 4:23 pm
by neon
I am not sure I understand your question. Windows 3.11 didnt use VBE but it doesnt mean that you cant use it.
Also note its VBE not Vesa, Vesa is the organization that developed the VBE specs.
Re: OS Development Under MS-DOS
Posted: Thu May 13, 2010 5:01 pm
by montrom
Hi, as long as the Boot Loader you use has the ability to set the VBE graphics mode, then you will be able to program the graphics code using the C language. You could also set the graphics mode after boot, using a
vm86 method.
Re: OS Development Under MS-DOS
Posted: Fri May 14, 2010 8:16 am
by Nathan
neon wrote:I am not sure I understand your question. Windows 3.11 didnt use VBE but it doesnt mean that you cant use it.
Also note its VBE not Vesa, Vesa is the organization that developed the VBE specs.
Thanks for adviding me. Now I know that they aren't the same thing.
montrom wrote:Hi, as long as the Boot Loader you use has the ability to set the VBE graphics mode, then you will be able to program the graphics code using the C language. You could also set the graphics mode after boot, using a
vm86 method.
I'm going to take a look at
vm86. Thanks.
Re: OS Development Under MS-DOS
Posted: Fri May 14, 2010 8:42 am
by qw
Nathan, if you're developing a real mode OS, you don't need Virtual 8086 Mode at all.