There is a section in the DT_INTS-14.bas file that has to be adjusted for the chip you are compiling for.
I wish I could make it automatic, but there's no way to do that.
For a 16F628, it doesn't have any General Purpose RAM in BANK3. So you have to comment out the wsave3 variable in this section.The 628 also has Access RAM at address $70 which can be accessed from any bank.Code: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 out wsave1-3 ' --- IF any of these three lines cause an error ?? ---------------------------- ' Comment them out to fix the problem ---- ' -- It depends on which Chip you are using, as to which variables are needed -- 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 ' ------------------------------------------------------------------------------
So commenting everything and uncommenting the $70 variable will work too.
Either way will work ... take your pick.
Code:;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 out wsave1-3 ' --- IF any of these three lines cause an error ?? ---------------------------- ' Comment them out to fix the problem ---- ' -- It depends on which Chip you are using, as to which variables are needed -- ;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 ' ------------------------------------------------------------------------------




Bookmarks