Thanks for that interesting link.
Finally to confirm. using a 16F88 which has 4k of code space I can dispense with.
Code:if (CODE_SIZE <= 2) movwf wsave ; copy W to wsave register swapf STATUS,W ; swap status reg to be saved into W clrf STATUS ; change to bank 0 regardless of current bank movwf ssave ; save status reg to a bank 0 register movf PCLATH,w ; move PCLATH reg to be saved into W reg movwf psave ;6 ; save PCLATH reg to a bank 0 register endif
But with a 12F683 2k space i need it.
I just bough & installed PBP3 looks good and after tweaking configs looks ok. Does this config look alright for a 16F88?
it compiles ok.Code:#config __config _CONFIG1, _INTRC_IO & _WDT_OFF & _LVP_OFF & _MCLR_ON & _CCP1_RB3 __config _CONFIG2, _IESO_OFF & _FCMEN_OFF #endconfig




Bookmarks