I have shared working Arduino code for a single node - it just does an HCF and loops back.
However, you can now write and compile your own code.
It's manual right now because I haven't written a program that will allow you to transfer code to the emulator (I'm sorry, but I'll get to it soon).
1. Write code for a single TIS-100 node.
2. Compile the code using the compiler.
3. Copy from the 2nd position to the end for the code marked with % - this is your program code. Insert commas (,) between the arguments and put them in your program array in the Arduino code.
4. Copy from the 2nd position to the end for code marked with a $ - these are your constants - put them in the constants array.
5. Copy from the 2nd position to the end for code marked with a : - these are your labels - put them in the label array.
6. Compile the Arduino code.
7. Enjoy.
I'm about to write a TIS-100 adding program, so I'll probably upload that as well.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.