void foo()
{
asm(" nop");
asm(" movi.n a0, 100");
asm("myloop:");
asm(" addi a0, a0, -1");
asm(" bnez.n a0, myloop");
}
You can also checkout the assembler code of your compiled C obj:
xtensa-lx106-elf-objdump -d -s <obj-file>
Xtensa architecture documentation (including assembler instruction set)
http://ip.cadence.com/uploads/pdf/xtens ... ndbook.pdf
Hope this help.
you can also look at the assembler code generated by gcc:
http://www.delorie.com/djgpp/v2faq/faq8_20.html
Cal
ulumu wrote:Xtensa architecture documentation (including assembler instruction set)
http://ip.cadence.com/uploads/pdf/xtens ... ndbook.pdf
Hope this help.
This is very helpful!
thanks