User:Hotcrystal0/12
Jump to navigation
Jump to search
12 is an esolang created by User:Hotcrystal0.
Commands
12 operates on a 2D plane of memory cells, starting at the top-left corner, which is labelled (0,0). The plane expands infinitely in the other two directions. The cells can be set to any integer value.
Movement
There are only two movement commands:
Command | Description |
---|---|
* |
Look at the value of the current memory cell, and move the pointer depending on what that value is mod 4, with 0 mod 4 corresponding to up and proceeding clockwise for the other three cases |
; |
Move the pointer to (0,0) |
Cell setting
Command | Description |
---|---|
0 |
Set the current memory cell to 0 |
1 |
Set the current memory cell to 1 if it is 1 or greater, and 0 otherwise |
2 |
Set the current memory cell to m2+1 where m is the value of the memory cell before the execution of the command |
~ |
Set the current memory cell to a random number between 0 and 255 |