Can we write jump(LC instruction) like instruction in embedded c languaage..I know that we can write assembly instructions in embedded c in c2000 32 bit micro controllers.But i dont know how to use LC (jump like instruction) in embedded C.
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.
Can we write jump(LC instruction) like instruction in embedded c languaage..I know that we can write assembly instructions in embedded c in c2000 32 bit micro controllers.But i dont know how to use LC (jump like instruction) in embedded C.
Hi Harish,
harish boyina said:Can we write jump(LC instruction) like instruction in embedded c languaage..I know that we can write assembly instructions in embedded c in c2000 32 bit micro controllers.But i dont know how to use LC (jump like instruction) in embedded C.
Yes, you can embed assembly code in your source file using following structure:
asm("NOP");
I guess, this is the manual that would be helpful for you.
0647.TMS320C28x Assembly Language Tools.pdf
Regards,
Gautam
Hi Haresh,
Actually, the C language has a built in unconditional branch functionality with the "goto" keyword:
label123:
...
goto label123;
*obligatory warning*
Using this statement in C is usually not considered good coding style; use sparingly. :)