Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bitter - like Brainfuck; only much, much, worse.
- - Influenced by: Brainfuck, Bitchanger, Boolfuck, Smallfuck
- The Virtual Machine:
- - data memory
- -- infinite and unbounded in the + direction
- -- initialized to 0
- -- an array of bits starting at zero and going to the right
- -- for practical purposes, memory only needs to be large enough to accomodate a particular program
- - p data pointer
- -- starting at bit 0 (b0)
- -- initialized to 0
- -- setting p to < 0 is an error and should halt the program
- - [p] bit value at memory location p
- - pc program counter
- - input: defined in initial program state
- - output: determined by examining memory
- - Turing Complete due to being equivalent to Smalfuck
- The Commands:
- '+' p += 1, [p] != [p]
- '-' p -= p, [p] != [p]
- '(' if [p] == 1, proceed to command after '('
- otherwise advance to command after matching ')'
- ')' go back to matching '('
- '!' dump - interpreter command: dump memory from 0 to highest value of data pointer
- '#' pause - interpreter command: dump memory and pause program
- Stored here with input from other people
- https://esolangs.org/wiki/Bitter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement