We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Critelli Register

From Esolang
Jump to navigation Jump to search

Critelli Register is an esolang heavily inspired by brainfuck. It is meant to be using the instructions from the instruction tape of Opus Magum to run programs.

Tape and reader

... 0 0 0|0|0 0 0 ... //Open Claw
          ^
... 0 0 0[0]0 0 0 ... //Closed Claw
          ^
... 0-0 0[0>0-0 0 ... //Closed claw with bonded atom represented with >
          ^

Critelli Register (CR) operates on an infinite tape of un-initialized atoms with values of zero. Values are initialized by grabbing and setting their values to a nonzero integer in base 6. Changing an initialized atom to 0 then releasing them uninitialized them.

Commands

Command Description
Space ( ) Skipped Command for formatting.
Grab ( F ) Grabs and initializes if possible. Also acts as a conditional signal for other commands
Release ( R ) Releases and uninitializes if possible. Also acts as a conditional signal for other commands
Move Left ( T ) and Move Right ( G ) Moves the pointer and grabber left or right one step on the tape. If the pointer is actively grabbing an initialized value, it attempts to move the value alongside it. If there is no initialized value in the way, the grabbed value will successfully move. The arm otherwise fails to move if blocked.
Bond Left ( A ) and Bond Right ( D ) If the arm is actively holding an initialized value, then it can be bonded to another value to the left or to the right. Bonded values move as a group.
Increment Value ( E ) and Decrement Value ( Q ) Increments or Decrements grabbed values by one in base 6. If decreased from 000 it overflows to 555 and vice versa. If part of a bonded group, all other members of the bonded group are incremented or decremented opposite of the grabbed value.
Begin Loop ( X ) If claw is closed, skip the loop if held value is nonzero. If claw is open, skip the loop if hovered value is zero. Otherwise, continue with the loop.
Loop Point ( C ) If claw is closed, end the loop if held value is nonzero. If claw is open, end the loop if hovered value is zero. Otherwise, return to corresponding Begin Loop Point
Jump/Skip ( V ) If claw is closed jump forwards X spots on the feedtape, where X is the current value held in claw. If claw is open jump backwards X spots on the feedtape, where X is the current value under the claw.
Break Bonds ( B ) If held values is bonded to any other values, remove them.
Take Input ( S ) takes a 3 digit base 6 number and overwrites the held value with this number.
Give Output ( W ) Outputs the value if currently held. If not held, output corresponding character in the character chart (WIP)

Examples

A+B problem

FSRGFSARXFQRCFBRTFW

With comments:

FSRG //Get first input
FSAR //Get second input
X    //Begin Loop
FQR  //Grab, decrement, release
C    //Check if Value is 0, otherwise loop again
FBR  //Debond and uninit second value
TFW  //Output now combined values