
 MOV A,P1
ANL A,#00001111B
CJNE A,#00Fh,R2_H ;IF FIRST ROW CONTAINS THE KEY PRESSED
