:If A=B and C=D can be :If AC=BD
This optimization is incorrect. For example, if A and D are 2, and B and C are 1, then the former piece of code will evaluate to 0, but the latter to 1.
Sunrise 3 Progress: 30%
Size: around 20 KB, not including the save lists and in-game RAM.