xa_asm: fixed parsing of symbols used with DS directive in BSEG (pass 2&3).
[fw/sdcc] / as / xa51 / local_label.xa
1 ;local lable test... labels consisting of one of more numbers
2 ;with a dollar sign on the end are considered to be local
3 ;labels and are unique within a section of code following
4 ;a normal non-local label
5
6
7         .equ    var, 40
8         .bit    my_bit, var.5   ;this is another comment
9
10 begin:
11         add     r5, r1
12         add     r4l, r2h        ;this is the third comment
13         add     r14, r2
14
15 00001$: add     [r5], r11
16         add     [r4], r1h
17
18         jmp     00001$
19         add     r2, [r0]
20         add     r0, r1
21         mov     [r4+4], r6
22         bkpt
23 00002$: mov     r2, r1
24         asr     r1, #3
25         mov     r1l, #9
26         bne     another_function
27         mov     [r1+4], r2
28         jmp     00002$
29         bkpt
30
31
32 another_function:
33         add     r4l, [r5]
34         add.b   [r6+], #-10
35 00001$: add.b   [r7+32321], #12
36         add.b   1231, #31
37         beq     00001$
38         djnz    r2, 00001$
39         jmp     begin
40