Looked in .lst file for the above errors and found both.
This one is strange because it indicates INTERRUPT_handler was not labeled with PBP...it was. Can you tell me from this why the error?
For this error I can't see why the FlagBit wasn't set. Can you explain this error to me?Code:M if (PBP == PBP) ; If INT handler is PBP M ifdef ReEnterUsed M btfsc _Vars_Saved M goto AfterSave M GetAddress AfterSave, _RetAddr M L?GOTO _SavePBP ; Save PBP system Vars M LABEL?L AfterSave M else M error ReEnterPBP must be INCLUDEd to use PBP type interrupts M endif M endif M GetAddress AfterUserRoutine, _RetAddr ; save return address M L?GOTO _Alarm ; goto the users INT handler M LABEL?L AfterUserRoutine M M if (yes == YES) M CHK?RP INTCON M bcf INTCON, IOCIF ; reset flag (if specified) M endif M else M INT_ERROR "INT_Handler" Error[101] : ERROR: ("INT_Handler" - Interrupt Flag ( INTCON,IOCIF ) not found.) M error "INT_Handler" - Interrupt Flag ( INTCON,IOCIF ) not found. M endif
Code:00989 INT_ENABLE IOC_INT ; enable IOC interrupts M ifdef FlagBit M ifdef INT_ENABLECLEARFIRST M if (INT_ENABLECLEARFIRST == 1) ; if specified M MOVE?CT 0, INTCON, IOCIF ; clear the flag first M endif M endif M MOVE?CT 1, INTCON, IOCIE ; enable the INT source M else M INT_ERROR "INT_ENABLE" Error[101] : ERROR: ("INT_ENABLE" - Interrupt Flag ( INTCON,IOCIF ) not found.) M error "INT_ENABLE" - Interrupt Flag ( INTCON,IOCIF ) not found. M endif




Bookmarks