1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-03 20:49:50 +00:00
6502bench/SourceGen/SGTestData/Expected/20280-label-placement_64tass.S

29 lines
578 B
ArmAsm
Raw Normal View History

.cpu "6502"
shortnm = $4000 ;short label
SomewhatLongName = $4001 ;somewhat longer label
* = $1000
lda shortnm
ldx SomewhatLongName
clc
bcc BranchTargetLongName
data
.byte $cc
ptr .var $00 ;local var with short name
PointerWithLongName .var $02 ;local var with longer name
BranchTargetLongName
sta ptr
stx PointerWithLongName
ldy data
lsr a
bcc shortb
shortb
nop
jmp done
done
rts