Son of a BitCh

From Esolang
Jump to navigation Jump to search

Son of a BitCh is an esolang with 2 instructions, created by islptng.

As the title says, it is heavily inspired and based on BitChanger. The program itself, has not only a tape, but a state storage, which the value is always one of diojn.

<
d: toggle current bit and move left
i: receive a bit from input buffer
o: push current bit to output buffer
j: if current bit is 0, jump back to the last 19th <, if next instruction is >, skip it; else continue jump back to the 38th
n: NOP

>
d: move right
else: NOP
every time a ">" is executed, shift the state storage(d->i->o->j->n->d)

that's it.

>>>>> moves right
<>>>>>< moves left.
<>>>>> toggle s a bit.
<>>>>><><>>>> input. 
<>>>>><>><>>> output.