DCPU-16 icon indicating copy to clipboard operation
DCPU-16 copied to clipboard

:floppy_disk: A javascript emulator for DCPU-16 (the computer system in Mojang's new game, 0x10c). Works in browsers and Node.

Results 8 DCPU-16 issues
Sort by recently updated
recently updated
newest added

Tested in goforth: http://0x10co.de/hiwhx Try typing: -50 5 / . 50 -5 / . The first results in -6564 and the second in -1. Both should be -10. Try: -50...

Hi there, LLVM backend has to emit the instructions like: ``` dasm16 :autoinit ;;Init data stack register C SET I, SP SUB I, 256 :autostart JSR main :autohalt SET PC,...

When I click the "run" button (against the demo code) and nothing happens. Checking the console I can see that a reference error exception is thrown because "display" isn't defined....

https://github.com/mappum/DCPU-16/blob/da75f33d1f03d8c187176b8c6ee46ca9f5f7aeb7/lib/assembler.js#L247 This case should emit `0x1a`, not `0x18`.

Technically we have 128k of ram to mess with but allot of assemblers push strings characters in to individual words. It would be nice if your assembler supported a tag...

Reading the 1.5 specs: "b is always handled by the processor after a" So: SET b, a should produce opode A, B Currently, SET 0x1110, 0x1120 produce: 7fe1 1110 1120...

This compiles to `7DC1 0002`: ``` SET PC, loop :loop ``` However, this compiles to `85C1`: ``` SET PC, 1 ``` They both do the same thing, but the latter...

enhancement

Not strictly necessary at this stage, but there's a snippet of assembly floating around with Notch's name on it that supports parametric macros: http://0x10co.de/np4yl

enhancement