Kernel

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
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Kernel

Post by Solar »

KieranFoot wrote: Does anybody think it would be possible to dissasemble the qbasic 4.5 base library (QB45.lib) and reprogram the print, file, graphics and other routines so that in the end i would be able to use qbasic to write code for my kernel???
Hehe... there's a nice twist of thinking in there. We do agree that you cannot write QB45.lib in Basic itself, yes? Now, before you do print / file / graphics, you need memory management, drivers etc., correct?

Well, so you go ahead and implement code that fulfils all those requirements, so you can use Basic to write your kernel. Let's say you use C for this.

But if you have code that does memory management, driver handling, file access etc. etc....

...that library is a kernel!

So, basically, you have written an OS in C, which can support applications in Basic.

You see where the snake bites its tail in there? ;-)
Every good solution is obvious once you've found it.
Tim

Re:Kernel

Post by Tim »

KieranFoot wrote:It could be possible, With lots of help...
It would be easier for you to learn how to use printers, files and graphics from scratch.
Post Reply