CPU optimization: look at the datasheet until you find two assembly instructions that would produce a desirable result when their side-effects are combined.

Microcontroller optimization: look at the datasheet until you find two peripherals that would produce a desirable result when their side-effects are combined.