Show HN: dcpubin - a pastebin for DCPU-16 programs
dcpubin.com
dcpubin.com
Here a person made a real-time IDE: http://dwilliamson.github.com/
Thus an HLT instruction is virtually equivalent to an instruction setting the PC back to PC itself, which, unless an outside force sets PC or [PC] to something else (think shared memory between multiple CPUs), is an unbreakable infinite loop.
SET PC, [--SP]
SET PC, [location with I/O]
Good call, detecting (PC, SP) fixed point then, although using the stack to jump onto itself is wicked. I don't want to go and solve the halting problem either.
> SET PC, [location with I/O]
Qualifies as outside force. I'm not sure I want to write/run a program that JMP to an @ provided by I/O, this reads like an SQL injection.
If you can make it easy to browse the snippets that would be great. It's probably important to get that working right away so that people can play with different programs and get a feel for the instruction set. (Plus people like to have their stuff seen by others.)
Can't wait to see where this is heading, as well as your JS implementation of DCPU.
fibonacci recursive: http://dcpubin.com/ppJrob0g2
fibonacci tail-call: http://dcpubin.com/epaCb-NI2
bitcoin.ycombinator.com
sopa.ycombinator.com
apple|facebook|google.ycombinator.com
privacy-issues.ycombinator.com
techcrunch.ycombinator.com
mpaa.ycombinator.com
...
I think we'll survive.There's already a wiki, GitHub organization, and IRC channel that I know of. If there's no mailing list, there will be.
Prints factorial table (2 columns - index and result) in console display.
Is there any easy way to differentiate between programs that definitely work in 0x10C and programs using hypothetical features?
Will there be any way to report programs that are malware? Or to correct the descriptions of supposedly innocent softs that are not innocent?
if malware becomes a problem, i'll address it then, but that's also part of the game...
Good luck!
Error: Subroutine crash
was not defined (address 40)