Bitshit
Jump to navigation
Jump to search
Bitshit is a programming language that can only work in bits. It follows very simple rules: A character followed by a bit will set a variable to the value of the bit. Variable names cannot be longer than a character, and there must not be any spaces. Anything after the declaration/assignment on a line is classed as a comment. You can download an interpreter here.
Instructions
00 define 0 = 0 and 1 = 1 makes it so that we can use these values 11 + A line starting with a plus is a comment a0 set the value of a to 0, or create it with 0 if it doesn't already exist b1 set the value of b to 1, or create it with 1 if it doesn't already exist c:a=b compare a equals b, placing the result in c d:c!b compare c not equal b, placing the result in b e:c&b compare c and b both equal 1, placing the result in e f:c|b compare c or b equal 1, placing the result in f [c] anything between [ and ] gets its value printed to the screen A, a character followed by a comma will take input (either 1 or 0) and place it in the variable [A] print the input from before
External resources
- An interpreter on GitHub