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

Dis/assembler is misinterpreting code

Open RunasSudo opened this issue 11 years ago • 0 comments

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

StrangeProblemDCPU

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.

RunasSudo avatar Mar 24 '13 09:03 RunasSudo