I am using the 672x series of processors and am far along in my application development.
I have a strange problem, I have written the following code:
for (li=26;li<256;li++){
EEdat[li]=0;}
li is currently an int variable, i have tried an unsigned short as well. When my program runs it never leaves this loop. Emulating it shows li increasing to 168 and then resetting to 0. Interrupts are off so I am not branching somewhere which could cause problems. This is in the main loop so stack is not being used. I am baffled. Any ideas at what might be going on.