Closed Blecki closed 12 years ago
I think dat
is actually an assembler directive, similar to how #include
in C is a preprocessor directive, not an actual C statement.
That notwithstanding, it's a rather useful tool, so +1 from me.
I saw that, and I'll probably make a beta version of this that has unreleased parts of the spec (other than console output).
Great. This is the only way I'm going to be able to support string literals effeciently in https://github.com/Blecki/DCPUC
That looks more like javascript with the var
and not having types, and it is all proper javascript syntax. :D
Yeah I know. But, javascript has C-like syntax so..
Technically javascript has Java-like syntax :P The guy (an employee of Netscape at the time, now the CTO of Mozilla) that wrote it was trying to make it look like Java because Sun gave them the rights to put Java in their browser. There's your history lesson for the day.
I'm going to call them all 'Pascals' now.
:)
To have this implemented would make this emulator even more useful. :+1:
Digital Rain demo requires dat to be running. It's here: http://pastebin.com/QFgsz95F
The following online assembler and debugger supports it: http://denull.ru/dcpu/dcpu.htm
Awesome - thanks for showing me another great emulator.
Oh, actually the Notch example requires dat: http://pastebin.com/pfUNsFFP
See more on http://www.reddit.com/r/dcpu16/comments/rxua0/analysis_testing_of_0x10x_compilers/
Finally got around to implementing this. Also, string literals.
As seen in http://www.0x10cforum.com/gallery/m/4932873/detail/56189#pid=466442
It does not appear to be in the spec yet. It looks like notch is freely mixing hex and strings. I'm guessing the instruction just copies bytes verbatim, probably expanding chars to 16 bits.