BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Optimize jumps on two-value enums #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 If comparing against value and there are only two options and one of them is ZERO, always compare against zero. 

   lda STRIG
   cmp #button__state__pressed
   jne _lbl3

Original issue reported on code.google.com by rudla.ku...@gmail.com on 30 Nov 2010 at 8:32

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 30 Nov 2010 at 9:54