1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-08-13 12:29:01 +00:00
6502bench/SourceGen/SGTestData/Expected/2012-label-localizer_64tass.S
Andy McFadden f7e5cf2f45 Progress toward 64tass support
Most tests pass, but 2007-labels-and-symbols fails because the
expressions recognized by 64tass don't match up with either of the
other assemblers.

This is currently using a workaround for the local label syntax.
64tass uses '_' as the prefix, which is unfortunate since SourceGen
explicitly allowed underscores in labels.  (So does 64tass for that
matter, but it treats labels specially when the '_' comes first.)
We will need to rename any non-local user labels that start with '_'.

(issue #16)
2018-10-23 20:08:01 -07:00

59 lines
1000 B
ArmAsm

.cpu "65816"
REALLYLONGLABELNAME = $8888 ;that's a long name
* = $1000
.as
.xs
nop
start lda _L100D
lda nextglob
lda pastglob
lda _L100E
_L100D nop
_L100E nop
nextglob
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
rts