Skip to content

Extending basic brainfuck 1/3 @1.1.0

Latest
Compare
Choose a tag to compare
@skantay skantay released this 29 Mar 03:28
· 1 commit to master since this release

Extended Type I
An extended set of additional 9 commands. func name BrainfuckExtended1

The nine Extended Type I language commands, each consisting of a single character:

"@" = Ends the program, generally used as a separator between code and data.
"$" = Overwrites the byte in storage with the byte at the pointer.
"!" = Overwrites the byte at the pointer with the byte in storage.
"}" = Performs a single right logical shift of the byte at the pointer.
"{" = Performs a single left logical shift of the byte at the pointer.
"~" = Performs a bitwise NOT operation on the byte at the pointer (all 1's and 0's are swapped).
"^" = 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.
"&" = 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.
"|" = 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.

Storage — The number in storage can only be changed by using a $ command, operations take place in the cell, not in storage.