Jump to navigation Jump to search
In addition to original 8 instructions, this language has 4 bitwise logical operation instructions and a special behaviour, which is executed when the program begins and ends.
||OR operation: Performs a bitwise OR operation on the byte at the pointer and the byte in storage, storing its result in the byte at the pointer. The pointer gets incremented.|
||AND operation: Performs a bitwise AND operation on the byte at the pointer and the byte in storage, storing its result in the byte at the pointer. The pointer gets incremented.|
||NOT operation: Performs a bitwise NOT operation on the byte at the pointer.|
||XOR operation: Performs a bitwise XOR operation on the byte at the pointer and the byte in storage, storing its result in the byte at the pointer. The pointer gets incremented.|
- The first 13 memory cells are initialized with 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, and 33 ("Hello, world!" in ASCII, without LF-termination) respectively. In other words, the following code is inserted to your beginning of program:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++> +++++++++++++++++++++++++++++++++> <<<<<<<<<<<<<
- When the program ends, the pointer keeps being incremented until the value at the pointer is zero, outputting the currently pointed-to value. In other words, the interpreter automatically appends
[.>]to your program.
- Original description page (from the Wayback Machine; retrieved on 9 February 2008)
- Original implementation in Perl (from the Wayback Machine; retrieved on 30 January 2008)
- Other implementations
- BaseOutside/braincrash - in C++.