Chris,
That works for my simplified example. Here's another
example if what I'm REALLY attempting to do. This code
is ported from the IAR compiler.
;;;;;;;;;;;;;;;;;;;;;; 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.)
Maybe I'll just port my small assembler file to C and that
will solve my problem.
Thanks for all the quick responses from everyone so far.
- Dan
> From: Chris Liechti
> Sent: Thursday, September 18, 2003 2:54 PM
>
> Dan Miner wrote:
> > I am having trouble assembling an assembly language source file.
> > Here is a small sample file to demonstrate the issue:
> >
> > ;;;;;;;;;;;;;;;;;;;;;; file test.s ;;;;;;;;;;;;;;;
> ^ small "s"!
>
> > Command line:
> > C:\Data> msp430-gcc -mmcu=msp430x149 test.s -o test.o
>
> .s -> pure asm
> .S -> asm with C preprocessor
>
> that means that the defines are not processed in your case...
> and foo1 foo2 are unknown symbols to the asssember and are assumed
> external. so try again with a renamed file.
>
> chris