MiniBitMove

From Esolang
Jump to: navigation, search

MiniBitMove is an language with only two-commands. If takes two inputs, the code and the data tape. Both consist of ones and zeros.

Commands

1: Flip the bit at the current cell
2: Move selector to the next cell

Program only stops when the selector reaches the end of the data tape. This means that if a program has no zeros, it is an infinite loop.

Examples

Flips all the bits in the tape

Code: 10
Data: 11111
Result: 00000

Infinite loop

Code: 1
Data: 111
Result: Program never ends

Interpreters

An interpreter written in lua