Question

DCPU-16 (the CPU in Notch's new game) doesn't seem to have any signed IF/MUL/DIV instructions.

Is there still a way to do signed arithmetic/control-flow that isn't super incredibly painful?

Était-ce utile?

La solution

The new DCPU spec published by Notch the other day, does have signed arithmetic instructions:

Unsigned  | Signed
==================
MUL       | MLI
DIV       | DVI
SHR       | ASR
IFG       | IFA
IFL       | IFU
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top