Rotary_Switch_1: clr temp2 ; sbic PinD, PD6 ; inc temp2 ; sbis PinD, PD7 ; rjmp Rotary_Switch_1_End ; ldi temp1, 0x03 eor temp2, temp1 ; Rotary_Switch_1_End: lds temp1, Rotary1_Status sub temp2, temp1 ; sbrs temp2, 0x00 ; rjmp Scan_Keys_End_1 ; add temp1, temp2 ; sts Rotary1_Status, temp1 andi temp2, 0x02 ; sbrc temp2, 1 rjmp Rotary_Switch_1_Bit sbr Key_Flags, (1<