OPRBCM

From Esolang
Jump to navigation Jump to search

OPRBCM, which stands for OPeRate and Branch if Condition Met, is a family of programming languages that includes subleq, Addleq and many more. It can also be a programming language if the Operation and Condition is selectable. It's also a subset of One-Instruction Set Computers.

oprbcm x y z:
   mem[x]=op(mem[x],mem[y])
   if(cond(mem[x])): goto z

List of known programming languages that fall under this category:

Please add more to this table if you can!
Name op cond
Subleq op(x,y) = x-y cond(x)= (x<=0)
BitBitJump and its variants (ByteByteJump,...) op(x,y) = y cond(x) = true
Addleq op(x,y) = x+y cond(x) = (x<=0)
NANDNZ op(x,y) = ~(x&y) cond(x) = (x!==0)

See Also