User:Unname4798/Esolangs/Bintape: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Unname4798 (talk | contribs)
No edit summary
Unname4798 (talk | contribs)
No edit summary
 
Line 24: Line 24:
  BRS      >>        Does RIGHTSHIFT bitwise operation with two numbers.
  BRS      >>        Does RIGHTSHIFT bitwise operation with two numbers.
  CELL[C]  [C]        Selects a cell.
  CELL[C]  [C]        Selects a cell.
Constant numbers are not allowed.

Latest revision as of 07:51, 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.

Constant numbers are not allowed.