??? 01/22/10 16:56 Modified: 01/22/10 17:16 Read: times |
#172670 - Reducing to Essentials Responding to: ???'s previous message |
Although I didn't go straight to assembly, I've been rebuilding the code piece by piece from the ground up and caught the problem.
It turns out there was something funny in the memory map that was stepping on the variable that needed to be updated (though the compiler didn't complain). I forced the offending structure using _at_ and the memory map cleaned up and the loop is behaving as expected. That "movx @dptr,A" command is still failing occasionally, but it seems to be related to memory being stepped on. I found it at another location and am tracing why it's not moving successfully there. Thanks everyone, and if I ever find the magic switch on the compiler to avoid this I'll post back. |