PreviousNext
Assignment compares to 0
Help > Appendix > Code Optimization > Assignment compares to 0

FLASH-                        RAM                Speed+

 

Copying among variables often compares them to zero too (because of MOVF instruction).

 

uns8 variable = *FSR0++;

if ( variable == 0 )

       ...

uns8 variable = *FSR0++;

if ( Zero_ )

       ...