avr: moved run mode loops