Don't do this!Code:Flag VAR BIT TOGGLE Flag
It might work now but it will mess you up. TOGGLE is ONLY meant to be used on PORT and LAT registers. Look it up in the manual for more details.
You can easily toggle a bit variable by doing either one ofCode:Flag = !Flag Flag = ~Flag




Bookmarks