I wanted to write a code that would wait for a button to be pressed. This is my code and the compiled result.
For some reason, my while statement has been compiled into a (MOV.B + RETA) instruction set.
I cleaned the project several times, restarted the CCS but it still remains there.
Any idea why this is happening ?
Thank you.
P.S.: This code is working perfectly on another project.
if ((P2IN & BIT1) == 0){
red_on();
}
