Skip to content

Spurious Labels #20

@AlexanderAdelAU

Description

@AlexanderAdelAU

The following code is strictly speaking invalid, however the disassembler produces spurious labels which is a potential issue.

The offending label that is generated mov r4, @scan

For example, this code
04 60 01 08 00 00 2D C0 02 04 01 12 C8 04 01 1E
2D C0 00 00 02 04 00 03 C8 04 00 0E 2D C0

produces

aorg >0100
0100 0460   b    @>0108               
0102 0108                             
0104 0000   data >0000                
0106 2dc0   xop  r0, r7               
0108 0204   li   r4, >0112            
010a 0112                             
010c c804   mov  r4, @>011e           
010e 011e                             
0110 2dc0   xop  r0, r7               
0112 0000   data >0000                
0114 0204   li   r4, >0003            
0116 0003                             
0118 c804   mov  r4, @scan            
011a 000e                             
011c 2dc0   xop  r0, r7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions