我设计了一个显示电路.有两个按键,作用是一个是按键+,一个是按键-,按下任一按键两位数码管的显示作+或-显示.但编译时.提示35行错误,符号未定义(mOV A ,@R6)请高手指点.先谢了
程序如下
ORG 0000H
AJMP MAIN
ORG 0003H
AJMP INT0
MAIN: MOV IE,#81H
MOV R0,60H
MOV R1,61H
HERE: SJMP HERE
INT0: JNB P0.0,D2
JB P0.1,RETURN
D2: MOV R6,#01
MOV R7 ,#01
D1: DJNZ R7 ,D1
DJNZ R6 ,D2
JNB P0.0, UP
JB P0.1 ,RETURN
CJNE @R0 ,#00 ,DOWNA
CJNE @R1 ,#00 ,DOWNB
AJMP RETURN
DOWNA: DEC @R0
AJMP DIS
DOWNB: DEC @R1
MOV R0 ,#9
AJMP DIS
UP: CJNE @R0 ,#10 ,UPA
mov @R0 ,#00
CJNE @R1 ,#3 ,DIS
INC @R1
AJMP DIS
UPA: INC @R0
DIS: MOV R7 ,#2
MOV R6 ,#60H
SEND: MOV A ,@R6 ;就是这里
MOV DPTR,#TAB
MOVC A ,@A+DPTR
MOV SBUF , A
OVER: JNB TI ,OVER
CLR TI
INC R6
DJNZ R7 ,SEND
TAB: DB 0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,90H
RETURN: RETI