We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

TapeFuck

From Esolang
Jump to navigation Jump to search

TapeFuck is another Brainfuck derivative.

TapeFuck operates on two tapes: one is the classic Brainfuck tape containing 30,000 positions initially filled with zeros and is arranged on a horizontal axis. The other tape consists of classic eight Brainfuck commands and is arranged on a vertical axis. TapeFuck programming involves moving the two tapes (a command tape and a data tape) accordingly and then executing the selection.

Commands tape

0: >
1: <
2: +
3: -
4: .
5: ,
6: [
7: ]

Data tape

0 0 0 0 0 0 0 0 0 0 0 ...
^
0 1 2 3 4 5 6 7 8 9 10 ...

TapeFuck commands

> - increment data pointer
< - decrement data pointer
^ - decrement command pointer
v - increment command pointer
x - execute command on specific data
[ - If the cell pointed to by the data pointer is zero, jump after matching ]
] - If the cell pointed to by the data pointer is non-zero, jump after matching [

Examples

soon