Ps2_stop:
ldi r16,&b00010000 'ïðè íåóäà÷å âûñòàâèì îøèáêó
sbis pinc,0 'ñòîïîâûé áèò âñåãäà "1"
rjmp Ps2_exit
lds r16, {Ps2_counter}
inc r16
cpi r16,15
brsh PS2_overflov
sts {Ps2_counter},r16
push r26
push r27
Loadadr Ps2_buffer , X
clr r17
add r26,r16
adc r27,r17
lds r16,{Ps2_key}
st x,r16
pop r27
pop r26
clr r16
rjmp Ps2_exit
-----------------------------------
Пойдёт такая реализация буфера приёма?