User:Unname4798/Esolangs/Bintape

From LifeWiki
Revision as of 06:12, 20 June 2024 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 an 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.