æ±ç¼ç¨åºå¦ä¸
RESET:MOV R0,#30H
DISBU:MOV @R0,#8
INC R0
CJNE R0,#38H,DISBU
MOV 32H,#10
MOV 35H,#10
MOV DPTR,#TABLE
DISPY:MOV R0,#30H
MOV R1,#1
DISP0:MOV P1,R1
MOV A ,@R0
MOVC A ,@A+DPTR
MOV P0,A
ACALL DELAY
MOV A ,R1
RL A
MOV R1,A
INC R0
CJNE R0,#38H,DISP0
AJMP DISPY
DELAY:MOV R6,#2
DL0: MOV R5,#100
DJNZ R5,$
DJNZ R6,DL0
RET
TABLE:DB 0C0H,0F9H,0A4H,0B0H,99H
DB 92H,82H,0F8H,80H,90H,0BFH
END
ä¸é¢æ¯ä»¿çå¾ï¼å³ä»¿çææ