1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-01 22:50:35 +00:00
6502bench/SourceGen/SGTestData/Expected/20060-target-adjustment_64tass.S
Andy McFadden b7d3e3cfdf Refactor 2006x-target-adjustment
Split into 6502/65816 portions.  The 6502 version is the original
with a few in-place substitutions (e.g. JMP for BRL).  The 65816
version is only needed to exercise special handling of PEA/PER.
2020-10-19 15:46:05 -07:00

87 lines
1.8 KiB
ArmAsm

.cpu "6502"
.enc "sg_ascii"
.cdef $20,$7e,$20
* = $1000
load11 lda #$11
_L1002 ldx #$22
_load33 ldy #$33
_L1006 lda #$44
_predat bne _L1042
.word $0123
_dat1 .word $4567
.word $89ab
_L1010 .word $cdef
_L1012 .word $0011
_L1014 .word $2233
.byte $80
.text "The quick brown fox"
.byte $80
.word _L1042
.word _L1041
.word _L1042+1
_fill0 .fill 16,$00
_L1041 .byte $80
_L1042 lda _predat+2
lda _L1041
asl _dat1
rol _dat1+2
ror _L1010
and _L1012
ora _L1014
lda _fill0
sta _fill0+4
lda _fill0+8
sta _fill0+12
jsr _L1002
_L1066 lda _L1006
_L1069 bit _L1066+2
ora _L1066+2
lda _L1069+1
lda _L1069+2
lda #$ea
_L1077 sta _L1077
_L107A sta _L107A+1
sta $107f ;self-ref; operand format refs nonexistent symbol
jmp _L2002
.byte $80
_dat81 .byte $81
.logical $2000
_L2000 .byte $82
.byte $83
_L2002 nop
nop
lda _dat81
lda _L2000
jmp _L2018
_L200D .byte $7c
_L200E .byte $7d
_L200F .byte $7e
.byte $7f
_nearby .byte $80
.byte $81
.byte $82
.byte $83
_L2015 .byte $84
_L2016 .byte $85
_L2017 .byte $86
_L2018 lda _L200D
lda _L200E
lda _L200F
lda _nearby-1
lda _nearby
lda _nearby+1
lda _nearby+2
lda _nearby+3
lda _L2015
lda _L2016
lda _L2017
rts
.here