发表于:2003-12-29 19:33:00
373楼
为什麽(1)回不到(2)?烦大家给看看。谢谢指正ORG 0000H
MAIN:
KK3:
MOV A,#00H
MOV 55H,#00H
MOV DPTR,#0F00H
MOVC A,@A+DPTR
MOV R0,A
KK2:
MOV R3,#20H
INC R0
MOV A,R0
MOVC A,@A+DPTR
ANL A,#0FH
MOV 54H,A
KK1:
MOV A,#0E0H
ADD A,54H
MOV P1,A
LCALL DL1
LCALL DL1
SETB ACC.4
LCALL DL1
LCALL DL1
MOV A,#0D2H
MOV P1,A
LCALL DL1
SETB ACC.5
MOV P1,A
LCALL DL1
MOV A,#0B3H
MOV P1,A
LCALL DL1
SETB ACC.6
MOV P1,A
LCALL DL1
MOV A,#074H
MOV P1,A
LCALL DL1
SETB ACC.7
MOV P1,A
LCALL DL1
DJNZ R3,KK1
INC 55H
MOV A,55H
CJNE A,#0A0H,KK2
SETB ACC.7
JB ACC.7,MAIN
DL1: MOV R7,#02H
DL: MOV R6,#0FFH
DL6: DJNZ R6,DL6
DJNZ R7,DL
RET
ORG 0F00H
DB 00H,01H,02H,03H,04H,05H,06H,07H,08H,09H,00H
ORG 0F00H
END