6

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?

BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283

1 Answers1

3

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
jimt
  • 25,324
  • 8
  • 70
  • 60
  • That spec is not the one linked to from the front page of 0x10c.com. I'm a little confused... – huon Apr 25 '12 at 11:38
  • 1
    This is the new spec which is still open for comments. Notch posted it on reddit the other day. Once it's finalized, it'll make its way onto the 0x10c website. – jimt Apr 25 '12 at 11:51