Open orchid-hybrid opened 9 years ago
Hey, I just wanted to say great work with coding the labels. It helped me get a better handle on MNNBFSL. I was working on something similar towards proving it's TC-ness, but eventually I opted to implement a Bitwise Cycle Tag interpreter. Thanks.
Hi,
I added labels (:label) and 'get label address' (!label) and then wrote in chicken scheme an assembler compiles them into pure MNNBFSL:
https://gist.github.com/orchid-hybrid/29cd05db345d17f80de5
label addresses are computed in binary:
The assembler must be careful to allocate enough space for printing out binary codes when calculating addresses.
Given that we have stack operations, +, *, swap and goto as well as conditionals it shouldn't be hard to build a simulator for a Turing complete language.