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