AnsweredAssumed Answered

What's the matter with labels?

Question asked by volt on Apr 3, 2013
Latest reply on Apr 5, 2013 by CraigG

Hello, everybody.

 

I've got a question regarding ADSP-2191 and assembly code.

The point is, I've got some assembly code like the following:

1 label_A:

2 //code

3 jump label_A.end;

4 //code

5 label_A.end: nop;

6 rts;

So, when the program jumps to the label label_A.end (line 5) then happens something weird (seems like there is no rts command in line 6), but if there is no nop, or if there are a couple of nop command everything is OK. Do I really need the line 5 or not? Where should I place it before or after rts command?

Thanks for help.

Outcomes