51单片机程序编译时提示:TEXT1(1): error C129: missing ';' before '0000'是要怎么改!
ORG0000HLJMPMAINORG0003HLJMPINTORG0100HMAIN:movsp,#30hsetbEAsetbEX0MOVP0,#0DEHSTART1:...
ORG 0000H
LJMP MAIN
ORG 0003H
LJMP INT
ORG 0100H
MAIN: mov sp,#30h
setb EA
setb EX0
MOV P0,#0DEH
START1: MOV P0,#7EH
ACALL DL5S
MOV R4,#6
START2: MOV P0,#0FEH
ACALL DL500ms
MOV P0,#7EH
ACALL DL500ms
DJNZ R4,START2
MOV P0,#0BEH
ACALL DL3S
MOV P0,#0DBH
ACALL DL5S
MOV R4,#6
START3: MOV P0,#0DFH
ACALL DL500ms
MOV P0,#0DBH
ACALL DL500ms
DJNZ R4,START3
MOV P0,#0DDH
ACALL DL3S
SJMP START1
DL500ms: MOV R5,#25
DL500ms1: MOV R6,#100
DL500ms2: MOV R7,#100
DJNZ R7,$
DJNZ R6,DL500ms2
DJNZ R5,DL500ms1
RET
DL3S: MOV R4,#6
DL3S1: LCALL DL500ms
DJNZ R4,DL3S1
RET
DL5S: MOV R4,#10
DL5S1: LCALL DL500ms
DJNZ R4,DL5S1
RET
INT: CLR EA
PUSH PSW
PUSH ACC
setb rs0
SETB EA
MOV P0,#0DEH
MOV R1,#2
LP: ACALL DL5S
DJNZ R1,LP
CLR EA
POP ACC
POP PSW
clr rs0
SETB EA
RETI
END 展开
LJMP MAIN
ORG 0003H
LJMP INT
ORG 0100H
MAIN: mov sp,#30h
setb EA
setb EX0
MOV P0,#0DEH
START1: MOV P0,#7EH
ACALL DL5S
MOV R4,#6
START2: MOV P0,#0FEH
ACALL DL500ms
MOV P0,#7EH
ACALL DL500ms
DJNZ R4,START2
MOV P0,#0BEH
ACALL DL3S
MOV P0,#0DBH
ACALL DL5S
MOV R4,#6
START3: MOV P0,#0DFH
ACALL DL500ms
MOV P0,#0DBH
ACALL DL500ms
DJNZ R4,START3
MOV P0,#0DDH
ACALL DL3S
SJMP START1
DL500ms: MOV R5,#25
DL500ms1: MOV R6,#100
DL500ms2: MOV R7,#100
DJNZ R7,$
DJNZ R6,DL500ms2
DJNZ R5,DL500ms1
RET
DL3S: MOV R4,#6
DL3S1: LCALL DL500ms
DJNZ R4,DL3S1
RET
DL5S: MOV R4,#10
DL5S1: LCALL DL500ms
DJNZ R4,DL5S1
RET
INT: CLR EA
PUSH PSW
PUSH ACC
setb rs0
SETB EA
MOV P0,#0DEH
MOV R1,#2
LP: ACALL DL5S
DJNZ R1,LP
CLR EA
POP ACC
POP PSW
clr rs0
SETB EA
RETI
END 展开
2个回答
展开全部
你这程序没有错误,我在我的电脑上试了,没有错误,你这个错误是说在0000前面少了个“;”,你把有0000哪一行删了,从新输一遍,记得输得时候要用英文输入法。有时用中文输得会被认为是注释。祝你好运。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询