User:Unname4798/Esolangs/Bintape: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Unname4798 (talk | contribs)
Created page with "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..."
 
Unname4798 (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
  IFFULL() {}        While the bit under the pointer is 1.
  IFFULL() {}        While the bit under the pointer is 1.
  RAND    R          Sets the bit under the pointer to a random value.
  RAND    R          Sets the bit under the pointer to a random value.
  OUT()    <>        Outputs an 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   +          Adds two numbers.
  ADD     +          Adds two numbers.
  SUB   -          Subtracts two numbers.
  SUB     -          Subtracts two numbers.
  MUL   *          Multiplies two numbers.
  MUL     *          Multiplies two numbers.
  BAND   &          Does AND bitwise operation with two numbers.
  BAND     &          Does AND bitwise operation with two numbers.
  BOR   |          Does OR bitwise operation with two numbers.
  BOR     |          Does OR bitwise operation with two numbers.
  BXOR   ^          Does XOR bitwise operation with two numbers.
  BXOR     ^          Does XOR bitwise operation with two numbers.
  BNOT   ~          Does NOT bitwise operation with two numbers.
  BNOT     ~          Does NOT bitwise operation with two numbers.
  BRS   >>        Does RIGHTSHIFT bitwise operation with two numbers.
  BRS     >>        Does RIGHTSHIFT bitwise operation with two numbers.
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.