单片机遇到的错误----test.c(1): error C129: missing ';' before '0000'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mylovewanzi/article/details/82866715

单片机遇到的错误----test.c(1): error C129: missing ‘;’ before ‘0000’


用汇编写了个程序,代码如下:

	  ORG   	0000H
MAIN: 	  MOV 		P1,#0FFH
	  LCALL 	DELAY
	  MOV 		P1,#00H
	  LCALL 	DELAY
	  LJMP 		MAIN
DELAY:    MOV 		R1,#200
D1:	  MOV 		R2,#150
D2:   	  DJNZ 		R2,D2
	  DJNZ 		R1,D1
	  RET
	  END

报错:test.c(1): error C129: missing ‘;’ before ‘0000’

错误原因:我用汇编写的程序,却用.c文件来保存的。

解决方案:只要将后缀改成.asm即可。

时间:2018年9月27日14:28:54


-END-

猜你喜欢

转载自blog.csdn.net/mylovewanzi/article/details/82866715