I have the following code in a project,
It's just an interrupt driven servo output.
I wanted to see the actual code produced and so opened the disassembly listing.
This is what I saw,
Now the line, CCPR2+=20000-ServoPos can't compile to one line MOVLW 0x20.
So, does anyone know how to get MPLAB X to show all the generated code?
Thanks,
Mike.
Code:
void interrupt high_priority ccp2(void){
if(CCP2IF==1){
if(CCP2M0==1){
//pin has just gone low so do delay
CCP2M0=0;
CCPR2+=20000-ServoPos;
}else{
CCP2M0=1;
CCPR2+=ServoPos;
}
CCP2IF=0;
}
}
I wanted to see the actual code produced and so opened the disassembly listing.
This is what I saw,
Now the line, CCPR2+=20000-ServoPos can't compile to one line MOVLW 0x20.
So, does anyone know how to get MPLAB X to show all the generated code?
Thanks,
Mike.