Page 1 of 1
BASIC OS
Posted: Sat Mar 08, 2008 11:34 am
by frocreator
I am making an OS that is written in BASIC. I know it is crazy, but I already started. I am wondering if anyone could help with anything like saving stuff/ loading stuff. I have my first part of the OS built but I haven't got the technical parts yet. It is, like Widows, over the DOS system. If you have any help, please post.
Good Idea?
Posted: Sat Mar 08, 2008 11:42 am
by SpooK
I think someone is already trying to do so with FreeBASIC, you may want to look for that/those project(s) and help out with them.
Posted: Sat Mar 08, 2008 12:27 pm
by Dex
What do you want your OS to run in realmode or pmode ?, i think your best do the basic parts, say in asm (some parts you will need to anyway) and than maybe writing a basic interpeter, built in to the shell.
Posted: Sun Mar 09, 2008 6:46 am
by xyjamepa
Good luck...
Posted: Sun Mar 09, 2008 11:43 am
by Combuster
It is, like Widows, over the DOS system.
I wouldn't really call a replacement shell for DOS a true OS, but yes, its possible. Assuming QuickBasic, it'll be slow as hell too
But tell us more, we don't all have an extra inner eye and a crystal ball to look for answers
Re: BASIC OS
Posted: Mon Mar 10, 2008 2:29 am
by Solar
The mainstream languages for writing an OS are ASM, C, and C++ to some extent. This has several reasons I won't go into here.
Attempting to write an OS in some other language is usually attempted for one of two reasons:
1) Because author is intimidated by ASM / C / C++ and wants to do it in a "simpler" language. Dumb idea, because chosing a "simpler" language doesn't make OS development simpler, to the contrary. The simplest language to write an OS in is C, period.
2) Because author is proficient in several languages, has some knowledge on the requirements of a freestanding environment, and sees an architectural advantage in chosing a different language. Might work for you.
Please do not be offended when, looking at your post, I place you in category 1), which is why I voted "no". I might be wrong, and in any case I wish you much fun working on your project.
Posted: Mon Mar 10, 2008 1:47 pm
by Dex
When i started coding a OS i was into pascal , i thought anything C can do, pascal can do, i wanted to prove to the world that pascal was as good as C.
One of the ways of doing this was to code a pascal OS, but it turned out 90% inline asm, so in the end i thought i might as well go 100% asm, which i did.
So i would add a third reason to solar's list:
3. Because your pig headed and want to prove it can be done, and in most case's it as not been done for a reason.