I'm programming in assembly using avr-as. I'm trying to understand the CPSE instruction and what it might be useful for. Basically, I was looking for a way to code a switch/case statement using something like:
1: cpi R16,2
I guess I don't understand why there isn't a CPSNE instruction that skips if NOT EQUAL which would be very useful in this situation.
Is there a better way, i.e., less code, to do code switch?
What do you use the CPSE instruction for? Loop termination?