Hi,
sorry for "stupid" question but I am trying to understand where is the problem in asm inline for too long time:
" bset XF";
compiler (realy ASM) reports "parsing error"
any suggestion,
thanks a lot!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
sorry for "stupid" question but I am trying to understand where is the problem in asm inline for too long time:
" bset XF";
compiler (realy ASM) reports "parsing error"
any suggestion,
thanks a lot!
should it be asm(" BSET XF"); in C and bSET XF in assembly?
regards.
yes, but code
asm(" BSET XF");
forces error "parsing" from some unclear reason,
thanks in adavnce
Is this the error message:
[E0000]
parse error
BSET XF
This is because XF is not defined. Use this:
//asm ("BSET XF");
asm (" bit(ST1,#13) = #1 ");
Refe to C55x v3.x CPU Algebaic Instruction Set Reference Guide for ST1 defination. http://www.ti.com/lit/ug/swpu068e/swpu068e.pdf
Also be sure to enable -algebraic mode in Runtime Model Options.
regards.
Please quote the exact error message you are getting.
I suspect you are using the --algebraic compiler option (also known as -mg) to put the compiler in algebraic assembly mode. However, that instruction is a mnemonic assembly instruction. You must not use --algebraic when compiling a C file containing that asm statement.
Thanks a lot!!!
this is my first project with CCS4 and I see I have a lot to learn..... (comparing to old good CCS3)