I've been working on a program that uses Darrel's interrupts (thank you!) that has worked fine until I added more code. It uses portB interrupt on change.
I am using PBP3 and Microcode Studio plus and the latest MPLAB assembler.
It appears that a subroutine which works fine on the first call then behaves erratically when called a second time from another place, basically returning to an entirely different place in the program and gets stuck in a loop consisting of a few lines of code.
The behavior is different if I move the interrupt handlers around in the program. Still gets stuck, just in different places.
I get 3 'crossing page boundary' warnings.
Thank you in advance for your thoughts?