1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-13 13:10:51 +00:00
6502bench/SourceGen/SGTestData/Expected/20081-label-localizer_acme.S
Andy McFadden 55f0230e6f Don't use "not" as a label in ACME output
The ACME assembler gets upset if you use "not" as a label.  We now
avoid doing so, using a generalized implementation of the opcode
mnemonic rename code.  (Issue #112.)

Renamed a label to "not" in the 20081-label-localizer test.
2021-10-18 13:04:10 -07:00

71 lines
1.2 KiB
ArmAsm

!cpu 65c02
REALLYLONGLABELNAME = $8888 ;that's a long name
* = $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 NOT1
NOT1 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