For a 16F887, it's RBC_INT.
You can tell that from the datasheet which specifies "PORTB change" interrupts.
And with DT_INTS-14 you'll see some comments in the file ...
Code:
;-- Place a copy of these variables in your Main program -------------------
;-- The compiler will tell you which lines to un-comment --
;-- Do Not un-comment these lines --
;---------------------------------------------------------------------------
;wsave VAR BYTE $20 SYSTEM ' location for W if in bank0
;wsave VAR BYTE $70 SYSTEM ' alternate save location for W
' if using $70, comment wsave1-3
' --- IF any of these three lines cause an error ?? ------------------------
' Comment them out to fix the problem ----
' -- Which variables are needed, depends on the Chip you are using --
;wsave1 VAR BYTE $A0 SYSTEM ' location for W if in bank1
;wsave2 VAR BYTE $120 SYSTEM ' location for W if in bank2
;wsave3 VAR BYTE $1A0 SYSTEM ' location for W if in bank3
' --------------------------------------------------------------------------
The idea is that wsave variables should be in your main program.
The old way, when you compile for a different chip, it may not have had the correct variables, and it would not have warned you.
Now it will always tell you when the wrong variables are commented.
And you can just change them in your code, and NEVER have to edit DT_INTS-14.
Some people get carried away with the editing and screw everything up.
Now there's NO REASON to edit DT_INTS-14
Bookmarks