Tool/software: TI C/C++ Compiler
I am trying to implement efficient multiplication and division for a PID controller on the msp430g2211. I am referencing the application note: www.ti.com/.../slaa329.pdf
I am using ccs 7.1.0.
when I add a file to my project, like horner_mul_int.s43 from the above application note, I get the error 'Illegal mnemonic specified' on each line. What is the correct process for including assembler source files and accessing the external functions in main.c?
horner_mul_int.s43
#include "msp430g2211.h"
NAME horner_mul_int
public mul_horner_int
RSEG CODE
mul_horner_int
mov.w R12,R13 ; The operand "input" in register R12
rla.w R13
add.w R12,R13 ; X1=X*2^1+X
rla.w R13
rla.w R13
add.w R12,R13 ; X2=X1*2^2+X
rla.w R13
add.w R12,R13 ; X3=X2*2^1+X
rla.w R13
add.w R12,R13 ; X4=X4*2^1+X
rla.w R13
rla.w R13
rla.w R13
add.w R12,R13 ; Final Result=X5=X4*2^3+X
mov.w R13,R12 ; The final answer returned to the
; calling function
ret
END