Advertisement
bf17

Bitter.txt - explanation

May 12th, 2017 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Bitter - like Brainfuck; only much, much, worse.
  2. - Influenced by: Brainfuck, Bitchanger, Boolfuck, Smallfuck
  3.  
  4. The Virtual Machine:
  5.  
  6. - data memory
  7. -- infinite and unbounded in the + direction
  8. -- initialized to 0
  9. -- an array of bits starting at zero and going to the right
  10. -- for practical purposes, memory only needs to be large enough to accomodate a particular program
  11.  
  12. - p data pointer
  13. -- starting at bit 0 (b0)
  14. -- initialized to 0
  15. -- setting p to < 0 is an error and should halt the program
  16.  
  17. - [p] bit value at memory location p
  18. - pc program counter
  19. - input: defined in initial program state
  20. - output: determined by examining memory
  21. - Turing Complete due to being equivalent to Smalfuck
  22.  
  23.  
  24. The Commands:
  25.  
  26. '+' p += 1, [p] != [p]
  27. '-' p -= p, [p] != [p]
  28. '(' if [p] == 1, proceed to command after '('
  29. otherwise advance to command after matching ')'
  30. ')' go back to matching '('
  31.  
  32. '!' dump - interpreter command: dump memory from 0 to highest value of data pointer
  33. '#' pause - interpreter command: dump memory and pause program
  34.  
  35. Stored here with input from other people
  36. https://esolangs.org/wiki/Bitter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement