PicBasic Pro uses 24-26 bytes for System Variables. (can be more)
DT_INTS-14 needs 7 bytes to do ASM interrupts.
And if you want PBP type interrupts ...
ReEnterPBP needs to save all of PBP's system variables (26 bytes)
Plus it uses another 8 bytes, just in case PBP creates more T? system vars.
For a total of 65 bytes.
But the 16F676 only has 64 bytes.
__________________________________________________ _________________________
If you only use ASM type interrupts, you'll have 31 bytes left for your variables.
If you really need PBP type handlers, you can reduce the MaxTvars constant in ReEnterPBP which will get back a few bytes.
reducing MaxTvars from 4 to 3 will allow your example above to compile.
Bookmarks