ORG 00H
LJMP MAIN
MAIN:MOV 91H,#00H
MOV 92H,#0FFH
MOV 0B1H,#00H
MOV 0B2H,#0FFH
MOV 70H,#00H
MOV 71H,#00H
MOV 72H,#00H
MOV 73H,#00H
L:LCALL XS
LJMP L
XS:MOV R0,#01H
MOV R1,#70H
XS1:MOV A,@R1
MOV DPTR,#TABLE
MOVC A,@A+DPTR
MOV P1,A
MOV P3,R0
LCALL YS
INC R1
MOV A,R0
RL A
MOV R0,A
CJNE R1,#74H,XS1
RET
ORG 500H
TABLE:DB 90H,0F9H,0F9H,0F9H
YS:MOV R2,#80H
DJNZ R2,$
RET
END
我这个是LED共阳的显示,为什么是9999而不是9111呢?我哪里编程错了吗
此帖出自
小平头技术问答
俺没认真看问题,
这能是9111么!!!
程序看懂了,没啥问题。
一周热门 更多>