|
【求助】那位大侠能帮我看一下我的程序吗?
#include "msp430x41x.h"
ORG 0F000h
RESET mov.w #300h,SP
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupP1 bis.b #001h,&P1DIR
Mainloop xor.b #001h,&P1OUT
Wait mov.w #050000,R15
L1 dec.wR15
jnz L1
jmp Mainloop
ORG 0FFFEh
DW RESET
END
错误信息在下:
Compiling file Untitled1.c...
Untitled1.c
c:\documents and settings\maoxuefei\my documents\untitled1.c (2) : Warning[14]: Type specifier missing; assumed "int"
c:\documents and settings\maoxuefei\my documents\untitled1.c (2) : Error[32]: Invalid declaration syntax
c:\documents and settings\maoxuefei\my documents\untitled1.c (4) : Error[32]: Invalid declaration syntax, unexpected identifier
c:\documents and settings\maoxuefei\my documents\untitled1.c (4) : Error[16]: Identifier expected
c:\documents and settings\maoxuefei\my documents\untitled1.c (5) : Warning[14]: Type specifier missing; assumed "int"
c:\documents and settings\maoxuefei\my documents\untitled1.c (5) : Error[112]: ',' unexpected
c:\documents and settings\maoxuefei\my documents\untitled1.c (13) : Error[4]: Unexpected end of file encountered
Total number of errors: 5
Total number of warnings: 2
谢谢. |
|