1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-11 13:50:13 +00:00
6502bench/SourceGen/SGTestData/Expected/20233-rockwell_acme.S
Andy McFadden 728966f8d2 Add W65C02S support, part 4 (of 4)
Added 20233-rockwell unit test to exercise the new opcodes.  Nothing
too fancy.

Fixed branch offset computation.

(issue #87)
2020-10-11 18:43:00 -07:00

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