Minks

From Esolang

Jump to: navigation, search

Minks is a programming language based on a Minsky machine with two registers: the REGISTER and the register. Every instruction is preceded by a condition, which is a string of alphabetic characters. (Case is ignored here.) Conditions are like boolean variables: if they're set to True, the instruction will be executed; if False, it won't.

Execution loops through the entire program until none of the conditions are met (they're all False).

The instructions:

INC: increments the REGISTER.
inc: increments the register.
DEC <condition>: if the REGISTER contains zero, sets <condition> to False; otherwise decrements the
                 REGISTER and sets <condition> to True.
dec <condition>: same as DEC, except on the register.
OUT: outputs the REGISTER modulo 256.
out: outputs the register modulo 256.
INP: takes input and puts it in the REGISTER.
inp: takes input and puts it in the register.
Personal tools