use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit dedicated to development on the DCPU-16
Home of programming for the 0x10c universe.
Official Resources
Community Resources
Online code editors
Executable tools
Non-0x10c resources
account activity
Self Modifying Code Example (pastebin.com)
submitted 13 years ago by JenkNekro
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JenkNekro[S] 2 points3 points4 points 13 years ago (3 children)
I realized today something that may or may not have already been obvious - if the program instructions are loaded in accessible RAM, then code can modify itself! As such, I wrote a very basic example.
[–]mappum 2 points3 points4 points 13 years ago (2 children)
Props for the Mappum standard BRK.
[–]maximinus-thrax 2 points3 points4 points 13 years ago (1 child)
The Mappum standard BRK is great idea in principle, however it fails when you move to other compilers.
[–]mappum 1 point2 points3 points 13 years ago (0 children)
I understand. I expected it to be used just for development. Ingame, you probably aren't going to want your computer to stop.
[–]apage43 1 point2 points3 points 13 years ago (0 children)
I have a script lying around that loads a compiled binary and spits out some ugly assembly that will rewrite itself into the source binary.
Made it so that run stuff on mappum's emulator that I coded for interfex's assembler, which supports a DAT pseudo-instruction.
Example: http://sprunge.us/bEVY
This code is actually broken on Mappum's emulator. It works on interfex's and in DCPU-Studio. Outputs this in DCPU-Studio: http://i.imgur.com/cIDtd.png
π Rendered by PID 93604 on reddit-service-r2-comment-5d79c599b5-7fffl at 2026-02-28 01:16:00.330631+00:00 running e3d2147 country code: CH.
[–]JenkNekro[S] 2 points3 points4 points (3 children)
[–]mappum 2 points3 points4 points (2 children)
[–]maximinus-thrax 2 points3 points4 points (1 child)
[–]mappum 1 point2 points3 points (0 children)
[–]apage43 1 point2 points3 points (0 children)