Ophis/tests/branch_c02_ref.oph
Michael Martin e5ac21f0f9 Second attempt at implementation of the BBXn instructions for Rockwell 65c02 chips.
Reliable technical documentation for how these instructions are decoded is a
little thin on the ground online, so some of this implementation is still
speculative.
2013-01-27 20:18:08 -08:00

108 lines
1.8 KiB
Plaintext

.text
.org $0800
early:
bbs0 $42, +
jmp late
* bbs1 $42, +
jmp late
* bbs2 $42, +
jmp late
* bbs3 $42, +
jmp late
* bbs4 $42, +
jmp late
* bbs5 $42, +
jmp late
* bbs6 $42, +
jmp late
* bbs7 $42, +
jmp late
* jmp late
* bbr0 $42, +
jmp late
* bbr1 $42, +
jmp late
* bbr2 $42, +
jmp late
* bbr3 $42, +
jmp late
* bbr4 $42, +
jmp late
* bbr5 $42, +
jmp late
* bbr6 $42, +
jmp late
* bbr7 $42, +
jmp late
* bbr0 $42, early
bbr1 $42, early
bbr2 $42, early
bbr3 $42, early
bbr4 $42, early
bbr5 $42, early
bbr6 $42, early
bbr7 $42, early
bra early
early2:
bbs0 $42, early2
bbs1 $42, early2
bbs2 $42, early2
bbs3 $42, early2
bbs4 $42, early2
bbs5 $42, early2
bbs6 $42, early2
bbs7 $42, early2
.advance ^+256
late:
bbr0 $42, late
bbr1 $42, late
bbr2 $42, late
bbr3 $42, late
bbr4 $42, late
bbr5 $42, late
bbr6 $42, late
bbr7 $42, late
bra late
bbs0 $42, late
bbs1 $42, late
bbs2 $42, late
bbs3 $42, late
bbs4 $42, late
bbs5 $42, late
bbs6 $42, late
bbs7 $42, late
bbs0 $42, +
jmp early
* bbs1 $42, +
jmp early
* bbs2 $42, +
jmp early
* bbs3 $42, +
jmp early
* bbs4 $42, +
jmp early
* bbs5 $42, +
jmp early
* bbs6 $42, +
jmp early
* bbs7 $42, +
jmp early
* jmp early
bbr0 $42, +
jmp early
* bbr1 $42, +
jmp early
* bbr2 $42, +
jmp early
* bbr3 $42, +
jmp early
* bbr4 $42, +
jmp early
* bbr5 $42, +
jmp early
* bbr6 $42, +
jmp early
* bbr7 $42, +
jmp early
*