The Let's Play Archive

SHENZHEN I/O

by Quackles

Part 75: Story: Avalon City Events Calendar

Avalon City Events Calendar



I've been to three out of four of these. They're pretty cool! I really like the 'Currents' one simply because of all the things you can find out about. Biochemical developments, new materials... the last time I attended, there was even a group that had a brain-computer interface project starting up. It's a lovely way to find parallels between your work and other work, too, like the description says.

That said, 'employee-citizens' is never not going to sound suuuuuper pretentious. Sorry, Mr Haotian.



Bobulus posted:

Rather than having both + and - jump to Feed, if you have it always copy X3 to acc, and then overwrite it with X1 or X2 based on the conditional, you get the exact same result in terms of power, with two fewer lines of code.

Thank you! That's a lovely design pattern to use with a tcp - I'll have to remember that.


GuavaMoment posted:

You can put most of those 'slp 1' lines at the beginning of the chip instead of at the end; saves power. At the end of the final chip, instead of '+mov 0 p1, -mov 0 p0', you can instead 'tcp p0 p1'. It clears both p0 and p1 and only uses one line of code.

Very clever - thank you! After making all these changes (yours and Bobulus's), it's down to 544 average power per run (from 545 - it looks like only moving the line on the tag-reader MC had an effect on the power usage, as the slp 1 lines for the center chips are locked behind conditional flags).
In addition, the project is down to 30 lines of code! (It had 33 before.) It looks very clean.

GuavaMoment posted:

Cats in this universe do not ask for food on the the first possible moment they can. What an unrealistic universe!

I'm blaming the test case generation algorithm. Though maybe Valence and Isotope are particularly well-behaved...