Settings

Theme

Web emulator for DCPU-16

0x10co.de

67 points by pros 14 years ago · 28 comments

Reader

pooriaazimi 14 years ago

This one is a 1700+ line operating system (AtlasOS, a multi-process capable DCPU-16 Operating System):

http://0x10co.de/ghekp

just amazing. The code is apparently available at https://github.com/Noxer/AtlasOS.

archgoon 14 years ago

One of the cool things about the website is the ease of forking snippets.

When the Word of Notch gave information on how input would work, previous code written using alternative schemes broke.

The snake game, http://0x10co.de/cdbk1, was one of these programs. However, it wasn't too long before people started hacking on it and started forking the code. Here's a version at the bottom of the fork tree:

http://0x10co.de/hbcdo

One draw back is that the newer versions don't show up on the top programs page (since people find out about the original first, and the fixes later) and give the illusion that website doesn't work properly.

pagekalisedown 14 years ago

(Not to get too meta, but..) I really like the domain name. It looked like "0x10 code" when I first saw it.

AUmrysh 14 years ago

I was going to suggest that you add a quick reference, but then I saw that it was on the right. It would be cool if the quick reference had stuff about the [addr] and :jmplabel and PC crash use, but other than that I am highly impressed with this site!

angersock 14 years ago

Great work on the web emulator!

So--and forgive my ignorance here--is there actually a spec up for things like hardware interrupts, IDTs, trap vectors, whatever?

This all seems of limited utility until we know how the machine is actually structured.

  • deliciouscoffee 14 years ago

    This is the only spec that we have to work with: http://0x10c.com/doc/dcpu-16.txt . Notch said he's reviewed quite a bit of feedback on the spec and to expect revisions although it may be a while.

    The rest of our information comes from Notch's tweets. Interrupts are unlikely. IO is memory mapped. There's been some guessing about display and keyboard but nothing set in stone.

  • archgoon 14 years ago

    In addition to the official spec, there are twitter posts and sample code, which is currently being taken as spec. Colors were justified based on an early screenshot that had text coloring.

    Here's Notch's code, originally linked to on twitter, that has been used to justify the way the 16 word buffer works in 0x10co.de

    http://pastebin.com/raw.php?i=aJSkRMyC

  • JEBailey 14 years ago

    There are, officially, no interrupts. As for the other bits I'm doubting it but Notch hasn't said anything official.

jazzychad 14 years ago

shameless self promotion: i also wrote a dcpu emulator pastebin at http://dcpubin.com/ as a weekend exercise to learn heroku and mongodb. it's definitely not as pretty as 0x10code, though. i've also decided not to implement some features (like keyboard input) until an official spec is released for them. maybe that's the wrong choice, not sure. anyway, it's a fun project to hack on. the code is here: https://github.com/jazzychad/dcpubin

_b8r0 14 years ago

It would be really cool if there was a link to the spec[1], some examples or a tutorial with this.

[1] - http://0x10c.com/doc/dcpu-16.txt

pyxy 14 years ago

http://0x10co.de/ylv5v - useful map of screen color codes if you are going to draw.

As I see most of sketches are related to printing on screen ;)

Frozenlock 14 years ago

I had to send the author some Bitcoins; he made it feel like the most natural thing in the world!

pyxy 14 years ago

Feature request: ability to vote up

Views counter is not very useful really: sketches from top are getting more views, random view is adding chaos. Voting up would be very good tool to identify interesting programs.

mappum 14 years ago

Also, the founder is an 18-year-old that applied for ycombinator. Hi.

indiefan 14 years ago

At this point, I'm just waiting for people to start releasing games centered around the DCPU-16 before Notch even releases his.

  • Tichy 14 years ago

    Is it open source, I mean, are others free to use it in their games?

JEBailey 14 years ago

neat. I took a look at the code base and there is a number of files with a jade extension. Anybody know what language/framework that is?

tonyrice 14 years ago

This is actually quite entertaining :)

dos1 14 years ago

The debugger is great! Until this came along I was really struggling to figure out how to write any kind of code for this DCPU thing. I don't have a background in assembly or really any sort of low level programming. The debugger makes the code a lot more approachable for someone like me!

  • mappum 14 years ago

    However running stuff in it locks up the browser a little bit. I will definitely improve on that, but I'm glad it is at least useful.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection