Cbazyx
Jump to navigation
Jump to search
Cbazyx, pronounced /c͡bʌzɪχ/, is an esolang based on Piet's method of running commands based on differences in color, applied to the alphabet.
Commands
The first letter always does nothing. Then the second letter calls an instruction based on how far you would need to rotate a Caesar Cypher disk to line up the first letter with the second. For example, EG would run instruction 2, while TS would run instruction 25. A duplicate letter runs instruction 0. [A byproduct of this is that code can still run the same when put through a Caesar Cypher.]
0 | Gets the user's input and stores it in memory. |
1 | Stores the next difference in memory. |
2 | Takes the value from memory and copies it to the cell marked by the next difference. |
3 | Marks this as a jump point with ID of the next difference. |
4 | Goes to the jump point with ID of the next difference. |
5 | Outputs the value in memory as an integer. [A copy stays in memory.] |
6 | Reads the cell marked by the next difference and pastes it into Memory. |
7 | Doubles the value in memory |
8 | Halves the value in memory. [Rounds up.] |
9 | Halves the value in memory. [Rounds down.] |
10 | Adds the value of the next difference to the value in memory. |
11 | If the value in memory is equal to the value in the cell marked by the next difference, skip the next command. |
12 | If the value in memory is less than the value in the cell marked by the next difference, skip the next command. |
13 | If the value in memory is greater than the value in the cell marked by the next difference, skip the next command. |
14 | Skip the next command. Useful when used with 11-13 to negate conditionals. |
15 | Performs boolean NOT on the polarity of the value in memory. The way it does this is by subtracting 1 if it is odd and adding 1 if it is even. |
16 | Set the value in memory to 2 to the power of its original value. |
17 | If the value is prime, set the value in Memory to 1. Otherwise, set it to 0. |
18 | Adds the value in the cell marked with the next difference to the value in memory. |
19 | Like 18, except subtracts the cell value from the value in memory. |
20 | Like 18, except multiplies the cell value by the value in memory. |
21 | Like 18, except divides the value in memory by the cell value. |
22 | Like 21, except it outputs the remainder. [Modulo] |
23 | Triples the value in memory. |
24 | Increments the value in memory. |
25 | Decrements the value in memory. |
Programs
All programs are listed beginning with A and ending with a period. In reality, removing the period, adding more punctuation or applying Caesar Cypher will still function.
Truth Machine
Abccnocghlnqrwabegl.