我在做4个16x16的点阵组成的显示屏在调程序时出现chenxu.asm(184): error A9: SYNTAX ERROR的错误怎么解决 求助 急!
时间:10-02
整理:3721RD
点击:
我编的程序ORG 0000H
LJMP START
ORG 0003H
RETI
ORG 000BH
LJMP INTT0
ORG 0013H
RETI
ORG 001BH
RETI
ORG 0023H
RETI
ORG 002BH
RETI
START:
MOV 20H,#00H
MOV A,#0FFH
MOV P1,A
MOV P2,A
MOV P3,A
MOV P0,A
CLR P1.6
MOV TMOD,#01H
MOV TH0,#0FCH
MOV TL0,#18H
MOV SCON,#00H
MOV IE,#82H
MOV SP,#70H
LCALL DIS1
MAIN:
MOV DPTR,#TAB
LCALL MOVDISP
MOV DPTR,#TAB
LCALL MOVDISP1
LJMP MAIN
MOVDISP:
MOV R1,#6
DISLOOP:
MOV R3,#100
DISMOV:
MOV R2,#00H
SETB TR0
WAITMOV:
JBC 00H,DISMOV1
LJMP WAITMOV
DISMOV1:
DJNZ R3,DISMOV
MOV A,#128
ADD A,DPL
MOV DPL,A
MOV A,#0
ADDC A,DPH
MOV DPH,A
DEC R1
MOV A,R1
JZ MOVOUT
LJMP DISLOOP
MOVOUT:
RET
MOVDISP1:
MOV R1,#255
DISLOOP1:
MOV R3,#10
DISMOV2:
MOV R2,#00H
SETB TR0
WAITMOV1:
JBC 00H,DISMOV3
LJMP WAITMOV1
DISMOV3:
DJNZ R3,DISMOV2
INC DPTR
INC DPTR
DEC R1
MOV A,R1
JZ MOVOUT1
LJMP DISLOOP1
MOVOUT1:
RET
DIS1:
MOV R3,#5AH
DIS11:
MOV R2,#00H
MOV DPTR,#TAB
SETB TR0
WAIT11:
JBC 00H,DIS111
LJMP WAIT11
DIS111:
DJNZ R3,DIS11
RET
INTT0:
PUSH ACC
MOV TH0,#0FCH
MOV TL0,#18H
MOV A,#97
ADD A,DPL
MOV DPL,A
MOV A,#0
ADDC A,DPH
MOV DPH,A
MOV A,#0
MOVC A,@A+DPTR
MOV SBUF,A
WAIT:
JBC TI,GO
AJM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FFH,0FFH,0FFH,0FFH,0FFH
DB
0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
DB
0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
DB
0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
DB
0F7H,0DFH,0F9H,0CFH,0FBH,0BFH,0C0H,007H,0DEH,0F7H,0C0H,007H,0DEH,0F7H,0DEH,0F7H
END
就最后DB之后的都显示是同一个错误
LJMP START
ORG 0003H
RETI
ORG 000BH
LJMP INTT0
ORG 0013H
RETI
ORG 001BH
RETI
ORG 0023H
RETI
ORG 002BH
RETI
START:
MOV 20H,#00H
MOV A,#0FFH
MOV P1,A
MOV P2,A
MOV P3,A
MOV P0,A
CLR P1.6
MOV TMOD,#01H
MOV TH0,#0FCH
MOV TL0,#18H
MOV SCON,#00H
MOV IE,#82H
MOV SP,#70H
LCALL DIS1
MAIN:
MOV DPTR,#TAB
LCALL MOVDISP
MOV DPTR,#TAB
LCALL MOVDISP1
LJMP MAIN
MOVDISP:
MOV R1,#6
DISLOOP:
MOV R3,#100
DISMOV:
MOV R2,#00H
SETB TR0
WAITMOV:
JBC 00H,DISMOV1
LJMP WAITMOV
DISMOV1:
DJNZ R3,DISMOV
MOV A,#128
ADD A,DPL
MOV DPL,A
MOV A,#0
ADDC A,DPH
MOV DPH,A
DEC R1
MOV A,R1
JZ MOVOUT
LJMP DISLOOP
MOVOUT:
RET
MOVDISP1:
MOV R1,#255
DISLOOP1:
MOV R3,#10
DISMOV2:
MOV R2,#00H
SETB TR0
WAITMOV1:
JBC 00H,DISMOV3
LJMP WAITMOV1
DISMOV3:
DJNZ R3,DISMOV2
INC DPTR
INC DPTR
DEC R1
MOV A,R1
JZ MOVOUT1
LJMP DISLOOP1
MOVOUT1:
RET
DIS1:
MOV R3,#5AH
DIS11:
MOV R2,#00H
MOV DPTR,#TAB
SETB TR0
WAIT11:
JBC 00H,DIS111
LJMP WAIT11
DIS111:
DJNZ R3,DIS11
RET
INTT0:
PUSH ACC
MOV TH0,#0FCH
MOV TL0,#18H
MOV A,#97
ADD A,DPL
MOV DPL,A
MOV A,#0
ADDC A,DPH
MOV DPH,A
MOV A,#0
MOVC A,@A+DPTR
MOV SBUF,A
WAIT:
JBC TI,GO
AJMP WAIT
GO:
MOV A,DPL
SUBB A,#1
MOV DPL,A
MOV A,DPH
SUBB A,#0
MOV DPH,A
MOV A,#0
MOVC A,@A+DPTR
MOV SBUF,A
WAIT1:
JBC TI,GO1
LJMP WAIT1
GO1:
MOV R0,#03H
MLOOP:
MOV A,DPL
SUBB A,#31
MOV DPL,A
MOV A,DPH
SUBB A,#0
MOV DPH,A
MOV A,#0
MOVC A,@A+DPTR
MOV SBUF,A
WAIT2:
JBC TI,GO2
LJMP WAIT2
GO2:
MOV A,DPL
SUBB A,#1
MOV DPL,A
MOV A,DPH
SUBB A,#0
MOV DPH,A
MOV A,#0
MOVC A,@A+DPTR
MOV SBUF,A
WAIT3:
JBC TI,GO3
LJMP WAIT3
GO3:
DJNZ R0,MLOOP
SETB P1.7
NOP
SETB P1.6
NOP
NOP
CLR P1.6
MOV A,R2
ORL A,#0F0H
MOV R2,A
MOV A,P1
ORL A,#0FH
ANL A,R2
MOV P1,A
CLR P1.7
INC R2
INC DPTR
INC DPTR
MOV A,R2
ANL A,#0FH
JNZ GO4
SETB 00H
MOV A,DPL
SUBB A,#32
MOV DPL,A
MOV A,DPH
SUBB A,#0
MOV DPH,A
CLR TR0
GO4:
POP ACC
RETI
TAB:
DB
0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
DB
0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,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