What's the matter with labels?

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.

  • Hi,

    Do you only see this behaviour when stepping through your assembly code in the source window, or is the behaviour the same if you change focus the Disassembly Window and step through the actual assembly code?

    If it only occurs in the Source window, can you provide a simple example project (including source files and DPJ file) that demonstrates what you are seeing?


  • 0
    •  Analog Employees 
    on Aug 2, 2018 4:49 PM
    This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin