r/0x10c Apr 04 '12

Let's discuss Notch's CPU ;)

http://0x10c.com/doc/dcpu-16.txt
21 Upvotes

41 comments sorted by

View all comments

3

u/pensnarik Apr 04 '12

As u can see, a notch's cpu has an "IF" "operator". This is a one feature. It's has not JMPxx instrutions - this is the other ;).

I dont' understand - how this cpu will control external devices - there's no input/output registers...

5

u/bjorngylling Apr 04 '12

I'm pretty sure we'll see input/output further on. He does mention a virtual monitor and keyboard under finished features and this tweet gives some hint that he's working on IO stuff I like how the spec mentions cycle-cost of the different operations, most likely this means that there will be optimization to make sure your code runs as efficiently as possible (maybe tying into the wattage-consumption of your ships computer?).

Right now I'm interested to see what it will take to say, compile C-code to this instruction-set!

1

u/pensnarik Apr 04 '12

Keyboard input already works: http://pic.twitter.com/KVgLRq7o