定阈值子程序
;=======================================================
YUZHI: LCALL SHEDING
MOV 44H,#00H ; 44H单元存按键次数,先清0
;******************键盘按键存储空间 *******
MOV 55H,#00H ;存入四次按键值
MOV 56H,#00H
MOV 57H,#00H
MOV 58H,#00H
MOV 50H,#00H ; 存阈值百位
MOV 51H,#00H ; 存阈值十位和个位
MOV 52H,#00H ; 存阈值小数位
;*************************************************************
KEY_09: MOV DPTR,#8101H ; 判断是否有键按下
MOVX A,@DPTR
ANL A,#07H
CJNE A,#00H,LPP1
AJMP KEY_09
;-------------------------------------------
;各个键的处理
;------------------------------------------
LPP1: MOV DPTR,#8100H
MOVX A,@DPTR
B0: CJNE A,#0D8H,B1
AJMP KK0
B1: CJNE A,#0D0H,B2
AJMP KK1
B2: &nb