8-Bit
8-Bit is an esolang created by User:Infinitehexagon in hopes of making his first Turing tarpit using Binary numbers, but it is Turing-incomplete due to the fact that the cells are bounded and are limited to 8 cells. Language also lacks any control flow and is Total. This language was originally Infinite Hexagon's REAL first esolang made last year and scrapped.
Commands
Command | Description |
---|---|
f | flip the bit in the cell. eg 1->0 and vice-versa. |
v | Outputs current bit |
> | Shift the memory pointer by 1 to the left(0) or the right(1). Default is right(1). |
: | flip the direction of the memory pointer. eg 0->1 and vice-versa. |
i | get input of a bit and store it into the current cell |
! | NO-OP |
Programs
Hello World
vfvfvvfvfvvv!vfvvfvvfvfvfv!fvfvvfvfvvfvv!vfvvfvfvvfvv!vfvvfvfvvvv!fvvfvfvfvvfvv!vvfvfvvvvv!vfvfvfvfvfvvvv! fvfvvfvfvvvv!fvfvvvfvvfvfv!vfvvfvfvvfvv!vfvvfvvfvfvv!vvfvfvvvvfv
The text would be 01001000011001010110110001101100011011110010110000100000010101110110111101110010011011000110010000100001
before converted to ascii and Hello, World!
after. Because there is only 8 cells, only cell 0 is used and toggled between 0 and 1 and the text is all the results of flipping cell 0.
Shift left
i>i>i>i:v>>>:>v>v
from 1234
to 4123
.
Shift right
i>i>i>i:>>v:>v>v:>>>v
from 1234
to 2341
.
One Time Cat
iviviviviviviviv
Extended version by User:ChuckEsoteric08
It adds these commands:
Command | Description |
---|---|
(...) | Execute if 0 |
{...} | Execute if 1 |
[...] | While 0 |
< | Set pointer to the first cell |
All of them can be nested. It also converts input from ASCII to binary and output into ASCII after program ends.
Implementation
(Slightly inaccurate interpreter regarding to Scratch's functions)