6502bench/SourceGen/SGTestData/Expected/20280-label-placement_acme.S

30 lines
594 B
ArmAsm

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