MCU汇编实现2小时倒计时程序,高手指点下啊
我写了个 但是好像有问题,不跑字,也没以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 高手帮帮忙啊 !!