1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-02 13:51:36 +00:00
6502bench/SourceGen/SGTestData/Expected/2012-label-localizer_cc65.S

61 lines
1.1 KiB
ArmAsm
Raw Normal View History

2018-09-28 17:05:11 +00:00
.setcpu "65816"
REALLYLONGLABELNAME = $8888 ;that's a long name
; .segment "SEG000"
2018-09-28 17:05:11 +00:00
.org $1000
.a8
.i8
nop
_start: lda @start
lda X_start
2018-09-28 17:05:11 +00:00
lda pastglob
lda @__nopped
@start: nop
@__nopped:
2018-09-28 17:05:11 +00:00
nop
X_start: nop
2018-09-28 17:05:11 +00:00
pastglob:
nop
lda nlocal
nlocal: lda #$11
reach1G: nop
lda reach1G+1
lda @reach2+2
@reach2: nop
reach3G: nop
@_reach4:
nop
lda @_reach4-2
2018-09-28 17:05:11 +00:00
lda $00
beq @L102D
jsr @_reach4
jsr _start
2018-09-28 17:05:11 +00:00
@L102D: lda #$22
lda gtest2
gtest1: nop
lda gtest3
gtest2: nop
gtest3: nop
lda #$33
lda $1041
topglob: nop
lda @L1043
nop
nop
@L1043: nop
lda #$44
globalnm:
2018-09-28 17:05:11 +00:00
jsr @L104A
nop
@L104A: nop
nop
nglobal: nop
globlat: jsr nglobal
bra end
end: nop
EXCESSIVELY_LONG_LABEL:
lda REALLYLONGLABELNAME
rts