originally posted in:Programmers and Devs
I wrote a BIOS for Notch's next game.
Long story short, in Notch's next game you will control a space ship via a 16 bit computer ( The DCPU16 )
you will have to program this computer with assembly. Or you can use a higher level language if someone writes a compiler for it ( there are already C compilers out there for the DCPU16 )
I wrote this simple BIOS. Designed to mimic the standard x86 boot process.
Right now it will load a 512 word bootsector from a simulated floppy drive, and then transfer control over to that 512 byte chunk of code. I linked the source on pastebin if anyone is interested in this kind of thing.
next up I will impliment a "hibernation mode" where the entire state of the system is written to the disk. And then restored from the disk at a later time.
and eventually a multitasking / threading system.
One thing you will immediately notice when writing OS level code is there is nothing to start with,
there is no #include <iostream> no printf.
You will have to impliment all of those yourself if you want to have that functionality. here is a bit of C from my BIOS that prints a string to the screen
int VPTR = 0x8000;
void bios_print_string ( char* str )
{
--------if ( *str != 0x0000 )
--------{
-------------*VPTR = *str;
-------------*VPTR |= 0xF000;
-------------VPTR++;
-------------str++;
-------------bios_print_string ( str );
--------}
}
English
-
What is the game's goal exactly? We have to program to make the ship move autonomously or what? I'm learning Assembly next semester, so this would be a fun game to practice with. xD
-
Is there any expected date of release or anything for 0x10c? I heard him talking about it ages ago, but I've hardly heard a thing since. So that is assembly? It doesn't look as bad as I was expecting, but it is still rather sparse. This'll certainly be interesting when it releases. Hopefully I can be motivated to learn some assembly then too.
-
Jesus... That looks intense.