microcode
microcode copied to clipboard
Coding "on the go" with the micro:bit (V2)
The buffer for bytecode is preallocated (4K or so) and fixed in size. Need to check for case where compiled code doesn't fit.
should we remember the slot we saved to and then save there (as well as autoslot?)
We only have equality tests on numbers, so add < and > for shorter programs (and more general ones).
Creating a program with two actions on the same resource triggered by the same event (press button A) yields different results: - for change page, show icon, show number, the...
1. Fairly easy optimization is to only keep buttons in the row that the cursor is currently on. 2. Second (harder) optimization is to only keep buttons that are on...
Add a number of empty rules, then delete the last non empty one... empty screen since we forgot to scroll

when I play a [turn dial](https://microsoft.github.io/microcode/docs/samples/count-turns) It is very necessary to add the minus block 