1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-02 13:51:36 +00:00
6502bench/SourceGen/SGTestData/Source/20062-target-adjustment.S

23 lines
737 B
ArmAsm
Raw Normal View History

2018-09-28 17:05:11 +00:00
; Copyright 2018 faddenSoft. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; Assembler: Merlin 32
org $1000
start nop
2018-09-28 17:05:11 +00:00
; 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
2018-09-28 17:05:11 +00:00
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
2018-09-28 17:05:11 +00:00
lda caddr+1 ;should base off caddr
lda caddr+2 ;should base off caddr
rts