I'm attempting to write an assembler for Notch's DCPU-16 spec. The original spec for this CPU can be found here.
The relevant lines:
SET A, 0x30 ;7c01 0030
...
IFN A, 0x10 ;c00d
I understand the instructions up to this point, but this one to me should be at least 2 words long rather than just 0xc00d
SET A, 0x10
would be 7c01 0010
. so
IFN A, 0x10
should be 7c0d 0010
shouldn't it?
Why does the b
argument in IFN
, not cause the instruction to need a [PC++] or nextword component?