Ophis/tests/branch_c02.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

75 lines
1.4 KiB
Plaintext

.text
.org $0800
early:
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
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
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
bbs0 $42, early
bbs1 $42, early
bbs2 $42, early
bbs3 $42, early
bbs4 $42, early
bbs5 $42, early
bbs6 $42, early
bbs7 $42, early