1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-13 14:29:23 +00:00
6502bench/SourceGen/SGTestData/Source/20062-target-adjustment.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

23 lines
737 B
ArmAsm

; Copyright 2018 faddenSoft. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; Assembler: Merlin 32
org $1000
start nop
; PEA/PER may want to push code addr-1; make sure that works. This
; is different from the way LDA works on the same address.
pre_addr
bit pre_addr
caddr
pea caddr-1 ;should base off caddr
per caddr-1 ;should base off caddr
lda caddr-1 ;should base off pre_addr
lda caddr ;should base off caddr
lda caddr+1 ;should base off caddr
lda caddr+2 ;should base off caddr
rts