Mycelium

Mycelium is an image-based esoteric programming language designed by Lode Vandevenne in 2005. The commands are read from a png image. There is some freedom in the colors you can give a pixel to get a certain command, so it's possible to create an image out of commands or encode the commands in a photo.

Mycelium has both memory and a stack. Stack and Memory are of arbitrary size and consist out of signed integers of at least 32 bits. There is also a gosub stack used to remember where to return to. It remembers the location and direction of the instruction pointer.

Commands
Every command is an RGB pixel with 8 bit per color channel. R % 16 (R modulo 16) selects the command or group of commands, G and B select the behaviour, the actual command or data. For some commands, G and B are unused and may be anything.


 * IP = Instruction Pointer (x, y, direction)
 * MP = Memory Pointer
 * &#42;MP = Memory value the MP is pointing at

Other values result in undefined behavior.

External resources

 * Mycelium interpreter source, examples and spec
 * Mycelium in the Esoteric File Archive