Qbasicnews.com
FreeBasic for DOS - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+---- Forum: FB Projects (http://qbasicnews.com/newforum/forum-16.html)
+---- Thread: FreeBasic for DOS (/thread-8894.html)

Pages: 1 2


FreeBasic for DOS - anarky - 02-17-2006

Something occured to me recently. Since some of you know assembly, could you make a 32-bit kernal with the capacity to run a FreeBasic game on it?

An FB-powered console?

OS?

>anarky


FreeBasic for DOS - DrV - 02-17-2006

You could just run Linux or DOS on it, since FreeBASIC already runs on those places, and there are free versions of each...


FreeBasic for DOS - thegrogen - 02-17-2006

I think he means writing an OS...

I'm planning on porting my OS to FB once I finish the C version, that'll be an FB OS proper.


FreeBasic for DOS - Sterling Christensen - 02-17-2006

There's FreeDOS-32, a 32 bit protected mode DOS clone made to run exactly the kind of executables FB for dos outputs. Looks like they just barely started on 16 bit real mode compatibility though.


FreeBasic for DOS - DrV - 02-17-2006

Well, 16-bit compatability won't be needed to run FreeBASIC DOS executables, since it is designed to run 32-bit DPMI apps, like those generated by DJGPP.


FreeBasic for DOS - anarky - 02-17-2006

Suppose a FB application can be made to be directly 32-bit like the NT kernal? And yes, I am talking about the theoretical possibility of an OS.

>anarky


FreeBasic for DOS - Z!re - 02-17-2006

Quote:Suppose a FB application can be made to be directly 32-bit like the NT kernal? And yes, I am talking about the theoretical possibility of an OS.

>anarky
FB-DOS is 32bit..


FreeBasic for DOS - d.j.peters - 02-18-2006

Not like an NT kernal you need an bootloader that setup the environment for an Dos protected mode interface DPMI an binary executer than you can load an FreeBASIC build as an single task but an 32 Bit FB OS as an single Task :-(

Joshy


FreeBasic for DOS - thegrogen - 02-18-2006

Quote:Not like an NT kernal you need an bootloader that setup the environment for an Dos protected mode interface DPMI an binary executer than you can load an FreeBASIC build as an single task but an 32 Bit FB OS as an single Task :-(

Isn't there a way for FB to ignore the default libraries so it just produces straight assembler code, without any external dependencies?

I know it's possible to go straight from bootloader to kernel in C. I'm going to see if I can do it with FB when I get some free time. If it works, I'll port my in-progress OS to FB.

anarky: If you're interested in OS development, then go here: http://www.osdever.net . The stuff is mostly in C, but it has some good stuff there that shouldn't be too hard to convert if you know C. It has a couple of articles that show you how to setup a bootloader, which is IMMENSLY useful when dev'ing your own OS.


FreeBasic for DOS - anarky - 02-18-2006

I don't know C... It looks way too messy.

>anarky