Talk:Sreg
Jump to navigation
Jump to search
Self-interpreter
I think that it's possible to write self-interpreter. You can encode registers as a tape with 6 cells. Implementing the tape is not that hard you can store it in A as a binary value 1a0b0c0e0f
where a, b, c, e, and f are cells. Their number is represented as string of 1's. Using B and C you could move tape around. Implementing ++ A B C
is not that hard: Go to cell A, set it to 0, copy value of B to A, and increment A times the value of cell C. Implementing -- A B C
is similiar but with decrementing rather that incrementing. --ChuckEsoteric08 (talk) 15:38, 26 May 2023 (UTC)