Bynary

From Esolang
Jump to: navigation, search

Registers and operators

a, b, c, d, e, f, g, h	-registers, 0 by default
x			-any register
y			-any register or 1 or 0
z			-1 or 0
n			-any positive integer
v:x,y			-sets register x to y
i:x			-invert register x
d:x,y			-nand registers x y
p:z			-prints the registers in binary abcdefgh, 0 for decimal and 1 for character
r:n			-loops next operation for n times

Example

v:a,1
v:d,1
p:1
v:b,a
v:h,i:d:a,b
p:1

should output

Hi

Implementation

An implementation in node js, written by User:Conor O'Brien, can be found here.