1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-03 05:49:48 +00:00
6502bench/SourceGen/SGTestData/Source/20280-label-placement.S

33 lines
729 B
ArmAsm
Raw Normal View History

; Copyright 2024 faddenSoft. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; The symbol __ENABLE_ALL_LABEL_NEWLINE must be defined in the project
; symbols, so that labels are placed on their own lines whenever possible.
;
; Assembler: Merlin 32
org $1000
shortnm equ $4000
SomewhatLongName equ $4001
lda shortnm
ldx SomewhatLongName
clc
bcc BranchTargetLongName
data dfb $cc
]ptr equ $00
]PointerWithLongName equ $02
BranchTargetLongName
sta ]ptr
stx ]PointerWithLongName
ldy data
lsr A
bcc shortb
shortb nop
jmp done
done rts