Le mardi 24 novembre 2009, Gordon Henderson a écrit : > Any thoughts, anyone?
As a workaround, you might disable (mask) interrupts in your main() code just before the instruction that calls _mullong, and re-enable them immediately after, so you're sure that an interrupt will never call _mullong while it's already being executed outside of the interrupt service routine... i.e while (INTCONbits.GIEL!=0) INTCONbits.GIEL=0; some_code_that_calls_mullong; INTCONbits.GIEL=1 (Use GIEL/GIEH or GIE/PEIE depending upon if you run with interrupt priorities enabled, or in compatibility mode) (See PIC app notes to see why you should "while()" test that interrupts are effectively disabled before continuing) HTH. -- Michel Bouissou (OpenPGP ID 0xEB04D09C) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user