1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-02 13:51:36 +00:00
6502bench/SourceGen/SGTestData/Expected/20062-target-adjustment_cc65.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

17 lines
333 B
ArmAsm

;6502bench SourceGen v1.7.3-dev2
.setcpu "65816"
; .segment "SEG000"
.org $1000
.a8
.i8
nop
L1001: bit L1001
caddr: pea caddr-1
per caddr-1
lda L1001+2
lda caddr
lda caddr+1
lda caddr+2
rts