mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-20 11:28:58 +00:00
Added 20233-rockwell unit test to exercise the new opcodes. Nothing too fancy. Fixed branch offset computation. (issue #87)
33 lines
575 B
ArmAsm
33 lines
575 B
ArmAsm
!cpu w65c02
|
|
G_DP = $20
|
|
|
|
* = $1000
|
|
bbr0 $10,L1004
|
|
rts
|
|
|
|
L1004 bbs1 $10,@L100B
|
|
rts
|
|
|
|
!byte $80
|
|
!byte $80
|
|
!byte $80
|
|
|
|
!zone Z00000b
|
|
.L_DP = $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
|
|
|