> From: Chris Liechti > Sent: Thursday, September 18, 2003 3:59 PM > > Dan Miner wrote: > > ;;;;;;;;;;;;;;;;;;;;;; file test.S ;;;;;;;;;;;;;;; > > #include <msp430x14x.h> > > bic.w #OUTMOD2|OUTMOD1|OUTMOD0|OUT, &TBCCTL0 > > ;;;;;;;;;;;;;;;;;; end of file test.S ;;;;;;;;;;;; > > > > The #include generates lots of error messages because of > > the non-assembler C code in there (as expected.) > > > > Are there include files for the assembler to define all > > the MSP430 I/O registers and bit fields? (IAR's .h files > > can be included in an assembly file to do this.) > > yes, just #include <io.h> > > the above example works for me if i include io.h instead of yours
Hmmm... That's strange. I get the same result with <io.h> and <msp430x14x.h>. When I look in io.h, I see that it only includes the proper msp43*.h file. What command line did you use to get it to work? This one does not work for me: msp430-gcc -mmcu=msp430x149 test.S > > Maybe I'll just port my small assembler file to C and that > > will solve my problem. > > thats a good idea with gcc anyway. you can do almost everything > in C and there is real inline assembly for the rest :-) I am starting on this now. Being a newbie for gcc I still have some learning curve to get through... ;-) - Dan