Javascript emulator for Notch's DCPU-16
jazzychad.net
jazzychad.net
this.data = new Array(size);
...
a = d.data[pa];
b = d.data[pb];
...
case 0x2: // ADD a, b
res = a + b;
...
d.data[pa] = res; d.data[pa] = res & 0xffff;
updated, thanks!Understanding something by implementing it in a favourite programming language is at the heart of being a hacker.
I think we'll see a massive wave of python/javascript implementations, a few C/C++/C# ones, and then finally a trickle of novelty implementations in haskell, lisp, brainfuck, etc. This part could last for months. :)
I suppose really I only gave half of an explanation though and did not account for how so many of these posts have gotten voted to the front page. I expect it still has to do with "my favorite language" though.