No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.project
.tmp_index.html.1352~
.tmp_readme.markdown.22434~
.tmp_tests.html.9177~
cpu.js
index.html
readme.markdown
screen.css
screen.js
tests.html

readme.markdown

Intro

This is a javascript simulator of the DCPU-16 CPU as released by Notch in early April 2012. [The full spec can be found here.] (http://0x10c.com/doc/dcpu-16.txt) I tried to fully test the CPU. You can find the tests in: tests.html The keyboard buffer spec is taken from this example code released by Notch The screen spec is taken from this example released by Notch. Thanks to evilpie, the code from his [javascript disassembler] (https://gist.github.com/2300590") I use in some places.

Known issues:

  • JSR not implemented yet
  • The online assemblers assemble this line "set a, 1" into 8401, that doesn't work right yet, instead use: 7c01 0001

What is DCPU-16?

Recently Notch (of Minecraft fame) anounced his new game: 0x10c. It is a space game. In this game you control your ship via a computer. This computer is the dcpu-16 and is fully programmable. Notch released the spec and a lot of tools have been released in the days after. This is one such a tool. Primarly created for the fun