各位大侠,本人写了下面的汇编程序,放到keil中编译,编译提示错误,请帮忙指出下这个程序哪里有错误,不胜感激!
程序如下:
ORG OOOOH
START: MOV A,#11111111B
CLR C,C=0
MOV R2,#8
LOOP: RLC A
MOV P2,A
LCALL DELAY
DJNZ R2,LOOP
SJMP START
DELAY: MOV R3,#20
D1: MOV R4,#20
D2: MOV R5,#248
DJNZ R5,$
DJNZ R4,D2
DJNZ R3,D1
RET
END
错误提示如下:
assembling LED.asm...
LED.asm(1): error A21: EXPRESSION WITH FORWARD REFERENCE NOT PERMITTED
LED.asm(3): error A9: SYNTAX ERROR
LED.asm(3): error A9: SYNTAX ERROR
LED.asm - 3 Error(s), 0 Warning(s). |