mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-02 13:51:36 +00:00
728966f8d2
Added 20233-rockwell unit test to exercise the new opcodes. Nothing too fancy. Fixed branch offset computation. (issue #87)
33 lines
603 B
ArmAsm
33 lines
603 B
ArmAsm
.setcpu "65C02"
|
|
G_DP = $20
|
|
|
|
; .segment "SEG000"
|
|
.org $1000
|
|
bbr0 $10,L1004
|
|
rts
|
|
|
|
L1004: bbs1 $10,L100B
|
|
rts
|
|
|
|
.byte $80
|
|
.byte $80
|
|
.byte $80
|
|
|
|
L_DP .set $30
|
|
L100B: nop
|
|
rmb2 $10
|
|
smb3 $10
|
|
rmb4 G_DP
|
|
smb5 G_DP
|
|
rmb6 L_DP
|
|
smb7 L_DP
|
|
@L1018: bbr2 $10,@L1018
|
|
bbs3 $10,@L1018
|
|
bbr4 $20,@L1018
|
|
bbs5 $20,@L1018
|
|
bbr6 $30,@L1018
|
|
bbs7 $30,@L1018
|
|
nop
|
|
rts
|
|
|