Add new opcodes#112
Conversation
|
I've also added a break opcode that brings you to the nearest loop exit just like it would in any other programming language. |
|
Here's a simple test program with two loops I used to verify break works correctly. I'll be testing both instructions on a large playthrough of Age of Engineering over the next few days. https://gist.github.com/avosirenfal/8c3c3e1decc4350e01068b5e0ec731b0 |
|
Highly parallel single card crafting using both of these instructions: https://i.imgur.com/Munz7ZL.png Code: https://gist.github.com/avosirenfal/c1aa706fd5a4cd53fb6aac55a9609449 That was harder to make than the code in the pull request was ._. |
|
I will check all this out later. Very hard at work with the rftools builder right now. Thanks |
|
Updated to add float versions of all the numeric opcodes (add, subtract, multiply, divide, modulus). These are very useful for vector art screens. Here's an example program for a Mechanism tank display: https://i.imgur.com/FBFuFNe.jpg https://gist.github.com/avosirenfal/d8d80901c59b6fd48dafa99af4e8549b |
|
Add a redstone pulse opcode. Add a CPU limting opcode or a function so we can set it to a specific op/t. Add a splitter opcode. |
This adds a new test opcode that attempts to acquire a named lock and branches depending on whether it could or could not instead of waiting to acquire it.