Hi,
Looking at the DT-INTS_18 file Darrel is declaring variables for saving the FSR's:There's also a section towards the end that saysCode:fsave0H var WORD BANK0 SYSTEM ' locations for FSR registers fsave1H var WORD BANK0 SYSTEM fsave2H var WORD BANK0 SYSTEM fsave0L var WORD BANK0 SYSTEM ' low priority FSR locations fsave1L var WORD BANK0 SYSTEM fsave2L var WORD BANK0 SYSTEMWhich sets a flag SAVE_TBLPTR = 1 when any PBP command that uses TBLPTR is used and in the ReEnterPBP-18 file he's declaring variables for TBLPTR like:Code:; ---[See if we need to save TBLPTR]------------------------------------------And then, further down in that file:Code:TBLPTRU_H VAR HP_Vars[31] TBLPTRU_SaveH VAR TBLPTRU_H.lowbyte TBLPTR_H VAR HP_Vars[32] TBLPTRH_SaveH VAR TBLPTR_H.highbyte TBLPTRL_SaveH VAR TBLPTR_H.lowbyteSo, to me, it looks like DT-INTS is handling all that stuff and you would/should only need to worry about it of you're using the FSR's or TBLPTR in any other ASM routines which would mean that DT-INTS does't detect them being used and therefor doesn't save them.Code:@ if Save_TBLPTR == 1 TBLPTRU_SaveH = TBLPTRU TBLPTRH_SaveH = TBLPTRH TBLPTRL_SaveH = TBLPTRL @ endif
Of course I may have it all wrong in which case I hope someone who can understand the ASM in DT-Ints better then me can explain what's going on.
/Henrik.




Bookmarks