(2) 延时程序:采用单片机内部的定时器进行延时 DL: MOV R7,#6 WW:
MOV TMOD,#01H ;50毫秒延时
MOV TH0,#3CH MOV TL0,#0B0H SETB TR0 JNB TF0,$ CLR TF0 DJNZ R7,WW RET
(3) 月份天数定义程序:把相同天数的月份归类 RX11: CJNE R4,#2,L391
MOV A,R3 CLR CY SUBB A,#30 SJMP L231
L391: CJNE R4,#1,L341
MOV A,R3 CLR CY SUBB A,#32 SJMP L231
L341: CJNE R4,#3,L351
MOV A,R3 CLR CY SUBB A,#32 SJMP L231
L351: CJNE R4,#5,L151
MOV A,R3 CLR CY SUBB A,#32