Qbasicnews.com

Full Version: Actual QBOS thread -- STFU NEWBS! :P
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Who said you can't convert c-code to Basic? Okay you can use everything but with help I translated the time-functions (for the rtc) from linux to Qbasic and they do work.

grtz
Quote:To completely ignore DOS and write an actual OS then you must start with raw machine language/circuitry logic.... gates, and, or's, etc...

Not really. That's only if you want to write drivers for an OS... a lot of an OS's functionality can be done in C, without directly accessing hardware. Directly accessing memory, yes, using INP and OUTP, yes, AND an OR, yes (and they're damned useful sometimes!), but no machine language involved, and certainly no circuitry logic, or logic gates.

The only place you really need ASM for is for the REALLY low level stuff, like the bootloader, interrupt handlers, maybe some low-level driver stuff. But you can use C (or FB if you can figure out how to make it spit out flat binaries with no rtlib, which IS possible, but you have to be VERY careful) to do almost all of an OS without too much trouble.

I'm probably going to write most of the GUI of my OS in FB. The kernel is in C at the moment, but at some point I may port it to FB if I can figure out how to make FB NOT spit out code that uses the rtlib.
Let old dogs, er, threads, lie...

Anonymous

Quote: if I can figure out how to make FB NOT spit out code that uses the rtlib.

compile with -nodeflibs option

(sorry drv >.>)

edit: ignore this post
Just for the record, that won't make FB not use rtlib references - that just affects the linking operation.
Quote:Let old dogs, er, threads, lie...

It somehow got bumped to the top of the list...
Quote:
DrV Wrote:Let old dogs, er, threads, lie...

It somehow got bumped to the top of the list...

Mr. McClouth revived it for you.
Quote:
thegrogen Wrote:
DrV Wrote:Let old dogs, er, threads, lie...

It somehow got bumped to the top of the list...

Mr. McClouth revived it for you.

Ah. Interesting...

On a similar note, my own OS can now run two programs at once in software! Now I just have to figure out hardware task switching and I can do it in hardware...
Pages: 1 2 3