Quote Originally Posted by richard View Post
any Alias that refers to a LATx reg cannot be safely used with HIGH,LOW,TOGGLE or any other pbp high level command the sort of bugs it can introduce vary from chip to chip and can be difficult to understand , don't do it

Blue var lata.2 '; an alias to a lata

high blue ; will not work safely
Though this is the recommended way to control output pins. I suppose this was before LAT registers showed up?

Ioannis