]> git.sur5r.net Git - cc65/blob - test/asm/6502x-opcodes.s
Fixed 65C02 timing again.
[cc65] / test / asm / 6502x-opcodes.s
1 .setcpu "6502X"
2
3    brk
4    ora     ($12,x)
5    jam
6    slo     ($12,x)
7    nop     $12
8    ora     $12
9    asl     $12
10    slo     $12
11    php
12    ora     #$12
13    asl     a
14    anc     #$12
15    nop     $3456
16    ora     $3456
17    asl     $3456
18    slo     $3456
19    bpl     *+122
20    ora     ($12),y
21    .byte   $12         ; jam
22    slo     ($12),y
23    nop     $12,x
24    ora     $12,x
25    asl     $12,x
26    slo     $12,x
27    clc
28    ora     $3456,y
29    .byte   $1a         ; nop
30    slo     $3456,y
31    nop     $3456,x
32    ora     $3456,x
33    asl     $3456,x
34    slo     $3456,x
35    jsr     $3456
36    and     ($12,x)
37    .byte   $22         ; jam
38    rla     ($12,x)
39    bit     $12
40    and     $12
41    rol     $12
42    rla     $12
43    plp
44    and     #$12
45    rol     a
46    .byte   $2b         ; anc     #$12
47    bit     $3456
48    and     $3456
49    rol     $3456
50    rla     $3456
51    bmi     *+122
52    and     ($12),y
53    .byte   $32         ; jam
54    rla     ($12),y
55    .byte   $34,$12     ; nop     $12,x
56    and     $12,x
57    rol     $12,x
58    rla     $12,x
59    sec
60    and     $3456,y
61    .byte   $3a         ; nop
62    rla     $3456,y
63    .byte   $3c,$56,$34 ; nop     $3456,x
64    and     $3456,x
65    rol     $3456,x
66    rla     $3456,x
67    rti
68    eor     ($12,x)
69    .byte   $42         ; jam
70    sre     ($12,x)
71    .byte   $44,$12     ; nop     $12
72    eor     $12
73    lsr     $12
74    sre     $12
75    pha
76    eor     #$12
77    lsr     a
78    alr     #$12
79    jmp     $3456
80    eor     $3456
81    lsr     $3456
82    sre     $3456
83    bvc     *+122
84    eor     ($12),y
85    .byte   $52         ; jam
86    sre     ($12),y
87    .byte   $54,$12     ; nop     $12,x
88    eor     $12,x
89    lsr     $12,x
90    sre     $12,x
91    cli
92    eor     $3456,y
93    .byte   $5a         ; nop
94    sre     $3456,y
95    nop     $3456,x
96    eor     $3456,x
97    lsr     $3456,x
98    sre     $3456,x
99    rts
100    adc     ($12,x)
101    .byte   $62         ; jam
102    rra     ($12,x)
103    .byte   $64,$12     ; nop     $12
104    adc     $12
105    ror     $12
106    rra     $12
107    pla
108    adc     #$12
109    ror     a
110    arr     #$12
111    jmp     ($3456)
112    adc     $3456
113    ror     $3456
114    rra     $3456
115    bvs     *+122
116    adc     ($12),y
117    .byte   $72         ; jam
118    rra     ($12),y
119    .byte   $74,$12     ; nop     $12,x
120    adc     $12,x
121    ror     $12,x
122    rra     $12,x
123    sei
124    adc     $3456,y
125    .byte   $7a         ; nop
126    rra     $3456,y
127    .byte   $7c,$56,$34 ; nop     $3456,x
128    adc     $3456,x
129    ror     $3456,x
130    rra     $3456,x
131    nop     #$12
132    sta     ($12,x)
133    .byte   $82,$12     ; nop     #$12
134    sax     ($12,x)
135    sty     $12
136    sta     $12
137    stx     $12
138    sax     $12
139    dey
140    .byte   $89,$12     ; nop     #$12
141    txa
142    .byte   $8b,$12     ; xaa     #$12
143    sty     $3456
144    sta     $3456
145    stx     $3456
146    sax     $3456
147    bcc     *+122
148    sta     ($12),y
149    .byte   $92     ; jam
150    .byte   $93,$12 ; ahx     ($12),y
151    sty     $12,x
152    sta     $12,x
153    stx     $12,y
154    sax     $12,y
155    tya
156    sta     $3456,y
157    txs
158    tas     $3456,y
159    shy     $3456,x
160    sta     $3456,x
161    shx     $3456,y
162    .byte   $9f,$56,$34 ;  ahx     $3456,y
163    ldy     #$12
164    lda     ($12,x)
165    ldx     #$12
166    lax     ($12,x)
167    ldy     $12
168    lda     $12
169    ldx     $12
170    lax     $12
171    tay
172    lda     #$12
173    tax
174    lax     #$12
175    ldy     $3456
176    lda     $3456
177    ldx     $3456
178    lax     $3456
179    bcs     *+122
180    lda     ($12),y
181    .byte   $b2     ; jam
182    lax     ($12),y
183    ldy     $12,x
184    lda     $12,x
185    ldx     $12,y
186    lax     $12,y
187    clv
188    lda     $3456,y
189    tsx
190    las     $3456,y
191    ldy     $3456,x
192    lda     $3456,x
193    ldx     $3456,y
194    lax     $3456,y
195    cpy     #$12
196    cmp     ($12,x)
197    .byte   $c2,$12     ; nop     #$12
198    dcp     ($12,x)
199    cpy     $12
200    cmp     $12
201    dec     $12
202    dcp     $12
203    iny
204    cmp     #$12
205    dex
206    axs     #$12
207    cpy     $3456
208    cmp     $3456
209    dec     $3456
210    dcp     $3456
211    bne     *+122
212    cmp     ($12),y
213    .byte   $d2         ; jam
214    dcp     ($12),y
215    .byte   $d4,$12     ; nop     $12,x
216    cmp     $12,x
217    dec     $12,x
218    dcp     $12,x
219    cld
220    cmp     $3456,y
221    .byte   $da         ; nop
222    dcp     $3456,y
223    .byte   $dc,$56,$34 ; nop     $3456,x
224    cmp     $3456,x
225    dec     $3456,x
226    dcp     $3456,x
227    cpx     #$12
228    sbc     ($12,x)
229    .byte   $e2,$12     ; nop     #$12
230    isc     ($12,x)
231    cpx     $12
232    sbc     $12
233    inc     $12
234    isc     $12
235    inx
236    sbc     #$12
237    nop
238    .byte   $eb         ; nop
239    cpx     $3456
240    sbc     $3456
241    inc     $3456
242    isc     $3456
243    beq     *+122
244    sbc     ($12),y
245    .byte   $f2         ; jam
246    isc     ($12),y
247    .byte   $f4,$12     ; nop     $12,x
248    sbc     $12,x
249    inc     $12,x
250    isc     $12,x
251    sed
252    sbc     $3456,y
253    .byte   $fa         ; nop
254    isc     $3456,y
255    .byte   $fc,$56,$34 ; nop     $3456,x
256    sbc     $3456,x
257    inc     $3456,x
258    isc     $3456,x