Signed arithmetic / control flow in DCPU-16?

DCPU-16 (CPU in Notch new game ) does not seem to have any signed IF / MUL / DIV .

Is there a way to do signed arithmetic / control flow that is not super incredibly painful?

+6
source share
1 answer

The new DCPU specification published by Notch the other day has signed arithmetic instructions:

 Unsigned | Signed ================== MUL | MLI DIV | DVI SHR | ASR IFG | IFA IFL | IFU 
+3
source

Source: https://habr.com/ru/post/913170/


All Articles