Hi,
I'm compiling assembly code on Code Composer Studio with MSP430F1610 as the target...
The first line of code is
>> .equ DCOCTL, 0x0056
and it generates the error
>> error: expected a declaration
Does the compiler expect a directive or something like that at the start of an assembly file? The code examples have .cdecls C,LIST, "msp430x16xx.h" at the head of each file, but adding that still produced the error.
Also the line of code
>> mov.w #10000, r11
generates the error
>> error: "#" not expected here
I'm not sure whats wrong with the syntax.
Again in another file,
The line
>> DCOCTL .equ 0x0056
generates 2 errors...
>> error: this declaration has no storage class or type specifier
>> error: expected a ";"
and again the line
>> mov.w #10000, r11
generates
>> error: expected a ";"
Any help would be appreciated,
Karan.