DCPU-16
DCPU-16 copied to clipboard
Dis/assembler is misinterpreting code
From the default 'Try some basic stuff' program on DCPU.ru:
Code: SET [0x1000], 0x20
'Expected' output: 7de1 1000 0020
Actual output: 7fc1 0020 1000
Disassembling the actual output: SET [0x0020], 0x1000
7fc1
o=0b00001
=SET
b=0b11110
=NEXT WORD
a=0b011111
=NEXT WORD (literal)
The problem appears to be that the DCPU specifications do not state which 'NEXT WORD' should be evaluated first.