Re: Circular Reference (auto index rollover)
So will probably try to use a 256 byte index / array-size if it will appear as rolled-over, but if you had to use an odd values like 124? The XOR sounds like another possibility.
I wondered if there is some kind of software control for a counter with compare? Probably less efficient than what you are suggesting.
The multiply accumulate function for TI looks like this:
rptz a,(rxbuf_len-1) ; repeat next instruction n times
...where I believe the "+0%" is the circular reference.
Thanks for your help.