mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-10 21:49:27 +00:00
3637bb964d
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.
38 lines
644 B
ArmAsm
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
|