mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-11 14:05:12 +00:00
b7d3e3cfdf
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.
23 lines
737 B
ArmAsm
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
|