YPetremann / ShenzhenIO

ShenzhenIO Solutions as save folder
25 stars 8 forks source link

Laser Tag: 172 power #7

Closed twarmboe closed 7 years ago

twarmboe commented 7 years ago

solution is now ¥10/177/10

Made further power improvements by:

twarmboe commented 7 years ago

Now down to ¥12/172/10 by:

Using a separate MC to send the value 1 and do nothing else so that we can combine the two instructions

+ mov 0 p1
+ sub 1

into a single instruction

+ sub p1

This required adding an OR gate so that the value 1 doesn't slip through to our output (1 will be clamped to 0).

So we use 1 more power on the first cycle but use 1 less power per successful trigger pull.