PreviousNext
One instruction at the if branch
Help > Appendix > Code Optimization > One instruction at the if branch

FLASH-                        RAM                Speed+

 

If the whole if branch is just one instruction long, then a goto instruction can be avoided.

 

RandomValue = lsr( RandomValue );

if ( Carry )

  RandomValue ^= 0b10111000;

RandomValue = lsr( RandomValue );

W = 0b10111000;

if ( Carry )

  RandomValue ^= W; // 1 instruction

 

if ( OERR )

{

  CREN = 0;

  CREN = 1;

}

if ( OERR )

  CREN = 0;

 

CREN = 1;