Number-encoded Bitwise Cyclic Tag

From Esolang
Jump to navigation Jump to search

Number-encoded Bitwise Cyclic Tag is variant of Bitwise Cyclic Tag by User:ChuckEsoteric08 which was created to implement BCT in register-based languages like TLIJMMWTRAMCBICHWTPITCSIBCTII, Sreg or EsoBASIC.

How it works

To convert Bitwise Cyclic Tag to Number-encoded Bitwise Cyclic Tag you should do this 2 (or 3) steps:

  1. Reverse Program and Data strings
  2. Append 1 to the beginning of each string
  3. (optional) Convert both strings to base-10 numbers