做网线测试器,用的是AT89S52单片机,程序类似于跑马灯,就是灯依次点亮都熄灭。程序烧进去后单片机不工作,急
ORG 0000H;
AJMP MAIA;
ORG 0003H;
LJMP MRT;
ORG 0030H;
MAIA:MOV P1, #0FFH;
MAIC:SETB EX0;
SETB IT0;
SETB EA;
MOV P1,#0FEH;
ACALL DELXS;
MOV A, P1;
MAIB:RL A;
MOV P1,A;
ACALL DELXS;
CJNE A,#80H,MAIB;
AJMP MAIA;
DELXS:MOV R7,#0FFH;
DEL1:MOV R6,#0FFH;
DEL2:DJNZ R6,DEL2;
DJNZ R7,DEL1;
RET;
MRT:MOV P1,#0FEH;
JB P3.3,MRT3;
MRT2:MOV A,P1;
RL A;
MOV P1,A;
ACALL DELXS;
MRT3:JB P3.3,MRT4;
JNB P3.2,MRT2;
MRT4:JNB P3.2,MRT3;
MRT1:RETI;
END;
怀疑是P2口和物理地址不符,是吗