I don’t know if it fits here but I will start it here.
I think we are a good mix of new and old people in this forum, so I want to start a little quiz, so the old probably can say yes I remember, and new can learn, or we all can learn.
My little start is simple:
How to swap two registers without changing any other registers?
I want to solve is this
But without changing r30.
It’s not legal to use in and out !
The code will work on any AVR so no push and pop
The solution is 3 instructions in 3 clk.
Hint the Zero flag can change value.
I don’t want any one give the solution before 48 hours after this.
But comments are welcome