Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to jump to labels which are defined in C code
Hi, In order to speed up system, I write a routine in ASM instructions. Then in asm code, I intend to jump to a label named LOOP which is defined in C code, but I failed. The following error oc...
Altera_Forum
Honored Contributor
20 years ago> error:undefined reference to ‘LOOP’
Put the label inline as well: <div class='quotetop'>QUOTE </div> --- Quote Start --- asm volatile ( "LOOP: ldwio r7,0(r4)" " stwio r7,0(r5)" " addi r5,r5,4" " addi r4,r4,4" " addi r6,r6,-4" " bne r6,zero,LOOP " \ );[/b] --- Quote End --- Regards, --Scott