dangermccann / dcpu16-ide

A DCPU-16 emulator and assembler written in Javascript
MIT License
30 stars 8 forks source link

Does not fail on incorrect SET [PC+16], 10 #7

Closed krasin closed 12 years ago

krasin commented 12 years ago

DCPU16 (rev. 1.7) does not have an addressing mode relative to PC, so SET [PC+16], 10 is incorrect.

The assembler does not fail, and produces the following output: 0xad81 0x0010 which is

SET [Y], 10
IFB A, A
dangermccann commented 12 years ago

Thanks so much for reporting this! Fixed now.

krasin commented 12 years ago

Thanks! Verified.