JB K1,M1 ; 判断按键是否按下 LCALL XIAOZHEN1 ; 调用消抖程序 MOV C,25H.0 JC A1
A1:CLR 25H.0
LCALL SETTIME ; 调用设置现在时间子程序 LJMP LOOP M1:JB K2,M2
LCALL XIAOZHEN2 MOV C,25H.0 JC A2
A2:CLR 25H.0
LCALL SETATIME ; LJMP LOOP M2:JB K4,M3
A3:LCALL XIAOZHEN3 MOV C,25H.0 JC A4
A4:CLR 25H.0 M3:LJMP LOOP SETTIME: L0:LCALL DISPLAY1 JB K2,L1
LCALL XIAOZHEN4 MOV C,25H.0 JC A5
A5:CLR 25H.0 INC 22H MOV A,22H
CJNE A,#18H,GO12 MOV 22H,#00H MOV 34H,#00H MOV 35H,#00H LJMP L0 L1:JB K3,L2
LCALL XIAOZHEN5 MOV C,25H.0 JC A6
调用设置闹钟的程序