Gstvnts

From Esolang
Jump to navigation Jump to search

Gstvnts is an OISC created by User:↑. Here's how it works:

a b c d
command. if (*a > *b+*c) {a=b-c; goto command;} else {a=b+c; goto *d;}

Where a is the variable to write to, b and c are the variables/numbers to write data to a, and d is the jump destination.

Turing-completeness

It is Turing-complete because the command can read and write to a variable, it can perform addition and subtraction, and it has a loop mechanism.

Examples

Infinite loop

1. a 0 1 1