dangermccann / dcpu16-ide

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

STI instruction clears 2nd operand? #1

Closed a1k0n closed 12 years ago

a1k0n commented 12 years ago

Try the following program:

set j, 0x8000
set b, 0x9000
sti [j], b
sti [j], b

After the first STI, b is incorrectly set to 0. I and J are correctly incremented though.

a1k0n commented 12 years ago

added a pull request; this is redundant now