急问:使用伟福汇编器输入程序后,进行编译后,出现对话框说:行:6,错误:353;符号未定义:TAB<AA.ASM>
各位汇编高手大哥大姐帮忙一下,程序在下面,错误是两个,两个都是符号未定义,一个是TAB,一个是DELAY_1MSROWEQU30HDOTEQU31HORG0000HAJM...
各位汇编高手大哥大姐帮忙一下,程序在下面,错误是两个,两个都是符号未定义,一个是TAB,一个是DELAY_1MS
ROW EQU 30H
DOT EQU 31H
ORG 0000H
AJMP MAIN
ORG 0030H
MAIN: MOV DPTR,#TAB
MOV R5,#15
START: MOV R6,#250
ONE_CHAR:MOV ROW,#01H
MOV DOT,#00H
MOV R7,#08H
NEXT_COL:MOV A,ROW
MOV P1,A
RL A
MOV ROW,A
MOV A,DOT
MOVC A,@A+DPTR
MOV P0,A
LCALL DELAY_1MS
INC DOT
DJNZ R7,NEXT_COL
DJNZ R6,ONE_CHAR
MOV A,DPL
ADD A,#8
MOV DPL,A
MOV A,DPH
ADDC A,#0
MOV DPH,A
DJNZ R5,START
LJMP MAIN
END
TAB: DB 0FFH,0FFH,7FH,0FFH,0FFH,0FFH,7FH,0FFH
DB 0FFH,0FFH,3FH,0FFH,0FFH,7FH,0BFH,0FFH
DB 0FFH,0FFH,3FH,0FFH,0FFH,0BH,0DFH,0FFH
DB 7FH,7FH,0FH,7FH,0BFH,0DFH,0EFH,0FFH
DB 0BFH,0BFH,03H,0DFH,5FH,0EFH,0FEH,0FFH
DB 0BFH,0BFH,07H,0DFH,0AFH,77H,0FBH,0FFH
DB 0EFH,0EFH,01H,0EFH,0D7H,0BBH,7DH,0FFH
DB 0F7H,0F7H,80H,0F7H,0EBH,0DDH,0BEH,0FFH
DB 0FBH,0FDH,0C0H,0FBH,0F5H,0EEH,0DFH,0FFH
DB 0FDH,0FDH,0D0H,0FDH,0FAH,0F7H,0EFH,0FFH
DB 0FEH,0FFH,0F0H,0FEH,0FDH,0FBH,0F7H,0FFH
DB 0FFH,0FFH,0F7H,0FFH,0FEH,0FDH,0FBH,0FFH
DB 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H,0FDH,0FFH
DB 0FFH,0FFH,0F1H,0FFH,0FFH,0FFH,0FEH,0FFH
DB 0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH
END
DELAY_1MS:MOV R4,#250
D0: NOP
NOP
DJNZ R4,D0
RET
END 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询