I used the same trick I used in Laser Tag to slim down to 109 power.
The idea is to have an OR gate eat a constant signal of 1 from another MC that can be used to both sleep for 1 and clear p1 with a single instruction (saving us 1 power per pulse).
The rest of the loop is just unrolling a bunch of checks to see when we get turned back on again (that way we can sleep for 3 when we fall out of a pulse)
Solution is ¥9/109/14
I used the same trick I used in Laser Tag to slim down to 109 power.
The idea is to have an OR gate eat a constant signal of 1 from another MC that can be used to both sleep for 1 and clear p1 with a single instruction (saving us 1 power per pulse).
The rest of the loop is just unrolling a bunch of checks to see when we get turned back on again (that way we can sleep for 3 when we fall out of a pulse)