Hi
And again I ran into a problem where I cant find a straightforward solution...
I am doing some inline assembly and I wanna execute some code a few times by using the .rept directive which tells the assembler to act as if the lines following .rept, up to the one just before .endr, are repeated the specified number of times.
The obvious problem is of course that the label 18 has already been specified. I wonder if there is a way to generate some dynamic label for each iteration?
__asm__ __volatile__ (".rept 10 \n\t");
__asm__ __volatile__( "test eax, eax \n\t" );
__asm__ __volatile__( "jne 18f\n\t" );
...
__asm__ __volatile__( "18: nop 18f\n\t" );
__asm__ __volatile__( ".endr\n\t" );