From: SourceForge.net <no...@so...> - 2012-02-02 00:43:06
|
Bugs item #3482876, was opened at 2012-02-01 16:43 Message generated for change (Tracker Item Submitted) made by msw012 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3482876&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mike W. (msw012) Assigned to: Nobody/Anonymous (nobody) Summary: Interrupts : Update to signal.h Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3482876&group_id=599 |