单片机实现12小时倒计时程序求助
小弟新手,编了个12小时倒计时...程序如下,但是没办法走字,显示好像也不是10进制.高手指点指点ORG 0000H
AJMP MAIN
ORG 000BH
AJMP START
MAIN: MOV R0,#11
MOV R1,#60
MOV R2,#60
MOV P0,R0
MOV P1,R1
MOV P2,R2
MOV TMOD ,#01H
MOV TL0,#0E0H
MOV TH0,#0B1H
MOV R3,#50
SETB TR0
SETB ET0
SETB EA
SJMP $
ACALL DELAY
START: MOV TL0,#0E0H
MOV TH0,#0B1H
DJNZ R3,DELAY
DEC R2
CJNE R2,#00,J0
MOV R2,#59
MOV P2,R2
LJMP K0
LCALL DELAY
K0: DEC R1
CJNE R1,#00,J1
MOV R1,#59
MOV P1,R1
LJMP K1
LCALL DELAY
K1: DEC R0
CJNE R0 ,#00,J2
LJMP MAIN
J0: MOV P2,R2
LCALL DELAY
LJMP START
J1: MOV P1, R1
LCALL DELAY
LJMP K0
J2: MOV P0, R0
LCALL DELAY
LJMP K1
DELAY: MOV R6,#0FH
DELAY1: MOV R5,#0FFH
DELAY2: MOV R4,#0FFH
DELAY3: DJNZ R4,DELAY3
DJNZ R5,DELAY2
DJNZ R6,DELAY1
RET
END