main:mov 30h,#09h mov 31h,#09h mov 32h,#09h mov 33h,#09h mov 34h,#09h mov 35h,#09h
deC 35h MOV A,35h CJNE A,#00H,DISPLAY MOV 35h,#0aH
deC 34h MOV A,34h CJNE A,#00H,DISPLAY MOV 34h,#0aH
deC 33h MOV A,33h CJNE A,#00H,DISPLAY MOV 33h,#0aH
deC 32h MOV A,32h CJNE A,#00H,DISPLAY MOV 32h,#0aH
deC 31h MOV A,31h CJNE A,#00H,DISPLAY MOV 31,#0ah
deC 30h MOV A,30h CJNE A,#00H,DISPLAY MOV 30h,#0aH aJMP DISPLAY ret
以上为草稿,大意是按一下键,999999数字减一,变成999998,再按一下,变成999997,。。。以次类推,根据大概意思,程序该如何修改,请指教 |