OS?

Everything else that doesn't fall into one of the other PB categories.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

IF this ever happends (im pretty sure it will not, but who knows :roll: ), THEN you can be sure I'll remember you. Nothing compares with this community and with PureBasic ;)

Seriously speaking, I'm trying to build a dos-like os, just for fun and to learn a bit of C, nothing serious.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Hmm, I was sitting here in front of my monitor and reading all this stuff that people were doing back in 80's - 90's and I got a headache :lol: . Just downloaded BASM, the basic to 286 translator and I think I could use it. Just have to ask this: It seems that it needs Windoze to run. What should I do to make the output platform independent, rewrite the functions and procedures?

[Edit]
I rewrote some functions for the VesaMode and I got a program working :D. It booted up.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

I recommend you to take an open source Kernel and try to understand it, I once had the code a friend used to write the fundamental parts for an operating system I will try to find it for you..anyway a good kernel to learn from is probably every open source microkernel I think Linux on the other hand would be a bad Idea since it's design is very old and it's huge. Maybe you should google for NewOS, L4, Fiascoand Mach these are all Micorkernels and so they have a very small codebase L4 for example is used to power the Dresden Reasearch Operating system and has less than 5000 lines of code, another OS you should definitely try is Minix 3 , Minix 1 was once the code Linus Torvalds build Linux on and Minix 3 is now a working Micro Kernel *NIX just tried it a few days ago in QEMU...
http://www.minix3.org/
There is also a book about Minix 3 it discripes the whole system and includes lots of the source code with comments, but please please forget about basic, And if you really want to take Basic take purebasic I'm sure it's possible you need to use C too though, I think it must be possible you need to program without any library then you need to look at the ASM Output there you see witch functions you need to implement behind the scene in c to get the purbasic code working, you then replace FASM so that th faked FASM can link make a object file out of the PurebasicASM, then you will link it with the C object files providing the functions Purebasic needs that should work, I recommend not to write everything in Purebasic but it would be deffinitley possible to have a Microkernel written in C wich can than run all needed servers wich can be written in PB....
Last edited by Nik on Thu Apr 20, 2006 11:49 pm, edited 1 time in total.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Wow! Very nice info... Thanks. Just for fun, here's a quick test, just to show the graphic acess :D.

File:1->OStest.zip
Image
Burn it or Qemu-it :D

However, if the information contains source made in C or ASM, I won't understand a bit :(.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Nice info and link, Nik. Thanks.
@}--`--,-- A rose by any other name ..
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

This ended up as soon as it started :D. I'm too noob to start it now. Maybe in 800 years or so I'll be able to understand it. For now, it's just waste of time.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Post Reply