麻烦帮我看下这简单程序那里有问题
ORG 0000H
AJMP MAIN
NOP
ORG 0020H
MAIN : MOV P0,#00H
MOV P2,#00H
MOV 39H,#0EFH
MOV 30H,#00H
MOV 31H,#01H
MOV 32H,#02H
MOV 33H,#03H
MOV 34H,#04H
MOV 35H,#05H
MOV 36H,#06H
MOV 37H,#07H
MOV R0,#30H
LOOP: MOV A,@R0
MOV DPTR,#WEI
MOVC A,@A+DPTR
MOV P0,A
INC R0
MOV A,@R0
CJNE A,#08H,XIANSHI
MOV R0,#30H
AJMP LOOP
XIANSHI: SETB P2.3
CLR P2.3
MOV A,39H
MOV P0,A
SETB P2.2
LCALL DEL
CLR P2.2
RRC A
MOV 39H,A
AJMP LOOP
DEL: MOV R7,#50
DEL1: MOV R6,#100
DJNZ R6,$
DJNZ R7,DEL
RET
WEI: DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH
END
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
帮我i再看看我在下面发了我最新改的程序和要求
一周热门 更多>