문제

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?

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top