]> git.sur5r.net Git - cc65/blob - test/asm/65c02-opcodes.s
Fixed 65C02 timing again.
[cc65] / test / asm / 65c02-opcodes.s
1 .setcpu "65C02"
2
3    brk
4    ora     ($12,x)
5    .byte   $02
6    .byte   $03
7    tsb     $12
8    ora     $12
9    asl     $12
10    rmb0    $12
11    php
12    ora     #$12
13    asl     a
14    .byte   $0B
15    tsb     $3456
16    ora     $3456
17    asl     $3456
18    bbr0    $12,*+122
19    bpl     *+122
20    ora     ($12),y
21    ora     ($12)
22    .byte   $13
23    trb     $12
24    ora     $12,x
25    asl     $12,x
26    rmb1    $12
27    clc
28    ora     $3456,y
29    inc     a
30    .byte   $1B
31    trb     $3456
32    ora     $3456,x
33    asl     $3456,x
34    bbr1    $12,*+122
35    jsr     $3456
36    and     ($12,x)
37    .byte   $22
38    .byte   $23
39    bit     $12
40    and     $12
41    rol     $12
42    rmb2    $12
43    plp
44    and     #$12
45    rol     a
46    .byte   $2B
47    bit     $3456
48    and     $3456
49    rol     $3456
50    bbr2    $12,*+122
51    bmi     *+122
52    and     ($12),y
53    and     ($12)
54    .byte   $33
55    bit     $12,x
56    and     $12,x
57    rol     $12,x
58    rmb3    $12
59    sec
60    and     $3456,y
61    dec     a
62    .byte   $3B
63    bit     $3456,x
64    and     $3456,x
65    rol     $3456,x
66    bbr3    $12,*+122
67    rti
68    eor     ($12,x)
69    .byte   $42
70    .byte   $43
71    .byte   $44
72    eor     $12
73    lsr     $12
74    rmb4    $12
75    pha
76    eor     #$12
77    lsr     a
78    .byte   $4B
79    jmp     $3456
80    eor     $3456
81    lsr     $3456
82    bbr4    $12,*+122
83    bvc     *+122
84    eor     ($12),y
85    eor     ($12)
86    .byte   $53
87    .byte   $54
88    eor     $12,x
89    lsr     $12,x
90    rmb5    $12
91    cli
92    eor     $3456,y
93    phy
94    .byte   $5B
95    .byte   $5C
96    eor     $3456,x
97    lsr     $3456,x
98    bbr5    $12,*+122
99    rts
100    adc     ($12,x)
101    .byte   $62
102    .byte   $63
103    stz     $12
104    adc     $12
105    ror     $12
106    rmb6    $12
107    pla
108    adc     #$12
109    ror     a
110    .byte   $6B
111    jmp     ($3456)
112    adc     $3456
113    ror     $3456
114    bbr6    $12,*+122
115    bvs     *+122
116    adc     ($12),y
117    adc     ($12)
118    .byte   $73
119    stz     $12,x
120    adc     $12,x
121    ror     $12,x
122    rmb7    $12
123    sei
124    adc     $3456,y
125    ply
126    .byte   $7B
127    jmp     ($3456,x)
128    adc     $3456,x
129    ror     $3456,x
130    bbr7    $12,*+122
131    bra     *+122
132    sta     ($12,x)
133    .byte   $82
134    .byte   $83
135    sty     $12
136    sta     $12
137    stx     $12
138    smb0    $12
139    dey
140    bit     #$12
141    txa
142    .byte   $8B
143    sty     $3456
144    sta     $3456
145    stx     $3456
146    bbs0    $12,*+122
147    bcc     *+122
148    sta     ($12),y
149    sta     ($12)
150    .byte   $93
151    sty     $12,x
152    sta     $12,x
153    stx     $12,y
154    smb1    $12
155    tya
156    sta     $3456,y
157    txs
158    .byte   $9B
159    stz     $3456
160    sta     $3456,x
161    stz     $3456,x
162    bbs1    $12,*+122
163    ldy     #$12
164    lda     ($12,x)
165    ldx     #$12
166    .byte   $A3
167    ldy     $12
168    lda     $12
169    ldx     $12
170    smb2    $12
171    tay
172    lda     #$12
173    tax
174    .byte   $AB
175    ldy     $3456
176    lda     $3456
177    ldx     $3456
178    bbs2    $12,*+122
179    bcs     *+122
180    lda     ($12),y
181    lda     ($12)
182    .byte   $B3
183    ldy     $12,x
184    lda     $12,x
185    ldx     $12,y
186    smb3    $12
187    clv
188    lda     $3456,y
189    tsx
190    .byte   $BB
191    ldy     $3456,x
192    lda     $3456,x
193    ldx     $3456,y
194    bbs3    $12,*+122
195    cpy     #$12
196    cmp     ($12,x)
197    .byte   $C2
198    .byte   $C3
199    cpy     $12
200    cmp     $12
201    dec     $12
202    smb4    $12
203    iny
204    cmp     #$12
205    dex
206    .byte   $CB
207    cpy     $3456
208    cmp     $3456
209    dec     $3456
210    bbs4    $12,*+122
211    bne     *+122
212    cmp     ($12),y
213    cmp     ($12)
214    .byte   $D3
215    .byte   $D4
216    cmp     $12,x
217    dec     $12,x
218    smb5    $12
219    cld
220    cmp     $3456,y
221    phx
222    .byte   $DB
223    .byte   $DC
224    cmp     $3456,x
225    dec     $3456,x
226    bbs5    $12,*+122
227    cpx     #$12
228    sbc     ($12,x)
229    .byte   $E2
230    .byte   $E3
231    cpx     $12
232    sbc     $12
233    inc     $12
234    smb6    $12
235    inx
236    sbc     #$12
237    nop
238    .byte   $EB
239    cpx     $3456
240    sbc     $3456
241    inc     $3456
242    bbs6    $12,*+122
243    beq     *+122
244    sbc     ($12),y
245    sbc     ($12)
246    .byte   $F3
247    .byte   $F4
248    sbc     $12,x
249    inc     $12,x
250    smb7    $12
251    sed
252    sbc     $3456,y
253    plx
254    .byte   $FB
255    .byte   $FC
256    sbc     $3456,x
257    inc     $3456,x
258    bbs7    $12,*+122