It turned out that the label should go without space before the label name.
On Tuesday, September 8, 2015 at 3:52:02 PM UTC+5, BBBx wrote:
>
> Hello,
>
> i'm trying to write a delay function with the asm in my clpru program.
> I add the following text:
>
> void loop5(void)
> {
> __asm__ __volatile__
> (
> " LDI32 r10, 5000 \n"
> " DELAY: SUB r10, r10, 1 \n"
> " QBNE DELAY, r10, 0 \n"
> );
> }
>
> but I get an error:
>
> "/tmp/06461GwSmDv", ERROR! at line 1225: [E0003] Invalid instruction
> DELAY:
>
>
> What does it mean? Should I add any definition of the label DELAY?
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.