I'm using SDCC version 3.1.0 to develop interrupt code for the PIC18F4685 using macros in signal.h. I think
I've found a bug in signal.h.
In the main interrupt vector table the macro DEF_HANDLER(sig, handler) from signal.h generates code to branch to
the appropriate signal handler. Assembler BTFSC statements are used to test bits in SFR registers eg. INTCON. The BTFSC statements in signal.h do not explicitly specify whether the access bank or the BSR is to be used and are defaulting to the BSR. To access SFR the access bank should be used.
Log in to post a comment.