JavaScript is required to use Bungie.net

  • 任務聲明

    A Group for programmers and developers of every area of computing, be it web or client, C# or CSS, this is the place to discuss your projects, problems, ambitions and more. Feel at home in this group, come on in.

  • 成員總數

    67 成員
    已加入此群組的總使用者數
    12 群組成立年數
    此群組的總活躍年數
  • 管理員

  • 已標籤

原先發佈於:Programmers and Devs
由Funkbrotha10編輯: 3/27/2013 11:21:55 PM
3

0x10c

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 ); --------} }

文章張貼語言:

 

以禮待人。發佈文章前請花點時間查看我們的行為準則 取消 編輯 創立火力戰隊 文章

檢視完整主題
你無權檢閱此內容
;
preload icon
preload icon
preload icon