1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-10 21:49:27 +00:00
6502bench/SourceGen/SGTestData/Expected/20050-branches-and-banks_acme.S
Andy McFadden 3637bb964d Regression test rework, part 4
Split 2005x-branches-and-banks into two parts, one that stays within
the 64K bounds of the 6502, one that puts code in a separate bank.
2020-06-06 17:30:50 -07:00

38 lines
644 B
ArmAsm

!cpu 6502
* = $0000
!pseudopc $1000 {
jmp L0000
} ;!pseudopc
!pseudopc $0000 {
L0000 bit+2 L0000
L0003 lda+1 L0000
lda+1 L0003
bne LFFC3
bmi $ffc3
bvs L0012
bvc L0080
lodat !byte $00
!byte $01
!byte $02
L0012 lda+1 lodat+1
clc
bcc LFFC0
} ;!pseudopc
!pseudopc $0080 {
L0080 bit+2 L0080
jmp LFFC6
} ;!pseudopc
!pseudopc $ffc0 {
LFFC0 bit LFFC0
LFFC3 clc
bcc L0003
LFFC6 rts
} ;!pseudopc