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
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 :-)
chris