crash@home
New Member
hey all.. I've been working on a project for some time using a PIC, everything in the program works as it should, however and the one issue I'm having is if i trigger an interrupt how can i return to a DIFFERENT point in my main program.
my initial theory was to set a bit in my delay loop then to a bit test at the return address and skip if set but i don't think it would work since my initial address would be from within a delay loop so the instruction that it would skip would essentially be a 'NOP' instruction and then the counter would continue counting down anyway. what i want to do is skip this counter instruction all together and move to the next line of code AFTER the delay.
thinking about it, i have an idea.. but while i work on it..
any ideas?
my initial theory was to set a bit in my delay loop then to a bit test at the return address and skip if set but i don't think it would work since my initial address would be from within a delay loop so the instruction that it would skip would essentially be a 'NOP' instruction and then the counter would continue counting down anyway. what i want to do is skip this counter instruction all together and move to the next line of code AFTER the delay.
thinking about it, i have an idea.. but while i work on it..
any ideas?