Signed arithmetic/control-flow in DCPU-16?
Asked Answered
D

1

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?

Dozen answered 13/4, 2012 at 21:26 Comment(0)
R
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
Reive answered 25/4, 2012 at 10:9 Comment(2)
That spec is not the one linked to from the front page of 0x10c.com. I'm a little confused...Gnostic
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.Reive

© 2022 - 2024 — McMap. All rights reserved.