aboutsummaryrefslogtreecommitdiff
path: root/tests/global-labels.s
blob: 93b4d6ddc27c701ddfd0c1cd039488756c101d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.segment "HEADER"
    .byte 'N', 'E', 'S', $1A
    .byte $02, $01
    .byte $00
    .byte $00

.segment "CODE"
;; asan:stack full

.scope Scope
    .proc foo
        lda #1                  ; $8000
        jmp Scope::bar          ; $8002
      #@known_address:
        rts                     ; $8005
    .endproc

    .proc bar
        jmp @label              ; $8006
        nop                     ; $8009
    @label:
        jmp @known_address      ; $800A
    .endproc
.endscope

jsr Scope::foo                  ; $800D