1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-03 05:49:48 +00:00
6502bench/SourceGen/SGTestData/Expected/20081-label-localizer_cc65.S
Andy McFadden 39b7b20144 ORG rework, part 1
This is the first step toward changing the address region map from a
linear list to a hierarchy.  See issue #107 for the plan.

The AddressMap class has been rewritten to support the new approach.
The rest of the project has been updated to conform to the new API,
but feature-wise is unchanged.  While the map class supports
nested regions with explicit lengths, the rest of the application
still assumes a series of non-overlapping regions with "floating"
lengths.

The Set Address dialog is currently non-functional.

All of the output for cc65 changed because generation of segment
comments has been removed.  Some of the output for ACME changed as
well, because we no longer follow "* = addr" with a redundant
pseudopc statement.  ACME and 65tass have similar approaches to
placing things in memory, and so now have similar implementations.
2021-09-16 17:02:19 -07:00

71 lines
1.3 KiB
ArmAsm

.setcpu "65C02"
REALLYLONGLABELNAME = $8888 ;that's a long name
.org $1000
nop
_start: lda @start
lda X_start
lda pastglob
lda @__nopped
@start: nop
@__nopped:
nop
X_start: nop
pastglob:
nop
lda nlocal
nlocal: lda #$11
reach1G: nop
lda reach1G+1
lda @reach2+2
@reach2: nop
reach3G: nop
@_reach4:
nop
lda @_reach4-2
lda $00
beq @L102D
jsr @_reach4
jsr _start
@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:
jsr @L104A
nop
@L104A: nop
nop
nglobal: nop
globlat: jsr nglobal
bra end
end: nop
EXCESSIVELY_LONG_LABEL:
lda REALLYLONGLABELNAME
@_uname: nop
@X_uname11:
nop
@X_uname1:
nop
@X_uname:
nop
lda #$00
@AND: bne @AND ;local
JMP1: bne JMP1 ;global
jmp1: bne jmp1
TSB1: bne TSB1
XCE: bne XCE
rts