Hi,
Looking at the DT-INTS_18 file Darrel is declaring variables for saving the FSR's:
Code:
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 SYSTEM
There's also a section towards the end that says
Code:
; ---[See if we need to save TBLPTR]------------------------------------------
Which 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:
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.lowbyte
And then, further down in that file:
Code:
@ if Save_TBLPTR == 1
TBLPTRU_SaveH = TBLPTRU
TBLPTRH_SaveH = TBLPTRH
TBLPTRL_SaveH = TBLPTRL
@ endif
So, 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.
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