User:Unname4798/Esolangs/Bintape: Difference between revisions
Jump to navigation
Jump to search
Unname4798 (talk | contribs) mNo edit summary |
Unname4798 (talk | contribs) No edit summary |
||
| Line 14: | Line 14: | ||
OUT() <> Outputs a 20-bit Unicode character based on the formula inside. | OUT() <> Outputs a 20-bit Unicode character based on the formula inside. | ||
== Operations inside OUT (<>) == | == Operations inside OUT (<>) == | ||
Normal Contracted Description | Normal Contracted Description | ||
ADD | ADD + Adds two numbers. | ||
SUB | SUB - Subtracts two numbers. | ||
MUL | MUL * Multiplies two numbers. | ||
BAND | BAND & Does AND bitwise operation with two numbers. | ||
BOR | BOR | Does OR bitwise operation with two numbers. | ||
BXOR | BXOR ^ Does XOR bitwise operation with two numbers. | ||
BNOT | BNOT ~ Does NOT bitwise operation with two numbers. | ||
BRS | BRS >> Does RIGHTSHIFT bitwise operation with two numbers. | ||
CELL[C] [C] Selects a cell. | |||
Revision as of 07:31, 20 June 2024
Bintape is an esoteric programming language. It is based on the public tape.
All commands in the normal version are separated by spaces.
Commands
Normal Contracted Description
LEFT l The pointer moves left.
RIGHT r The pointer moves right.
SET 1 Sets the bit under the pointer to 1.
RESET 0 Sets the bit under the pointer to 0.
FLIP T Flips the bit under the pointer.
IFNULL() [] While the bit under the pointer is 0.
IFFULL() {} While the bit under the pointer is 1.
RAND R Sets the bit under the pointer to a random value.
OUT() <> Outputs a 20-bit Unicode character based on the formula inside.
Operations inside OUT (<>)
Normal Contracted Description ADD + Adds two numbers. SUB - Subtracts two numbers. MUL * Multiplies two numbers. BAND & Does AND bitwise operation with two numbers. BOR | Does OR bitwise operation with two numbers. BXOR ^ Does XOR bitwise operation with two numbers. BNOT ~ Does NOT bitwise operation with two numbers. BRS >> Does RIGHTSHIFT bitwise operation with two numbers. CELL[C] [C] Selects a cell.