aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t_65/t_65.asm
blob: 0b9d3bcc1740691424be30e36c77e5cdf250ac64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
	cpu	melps740

	adc	#$12
	adc	$12
	adc	$12,x
	adc	$12,y
	adc	$1234
	adc	$1234,x
	adc	$1234,y
	adc	($12,x)
	adc	($12),y

	and	#$12
	and	$12
	and	$12,x
	and	$12,y
	and	$1234
	and	$1234,x
	and	$1234,y
	and	($12,x)
	and	($12),y

	asl
	asl	a
	asl	$12
	asl	$12,x
	asl	$1234
	asl	$1234,x

	bbc	3,a,*
	bbc	4,$12,*

	bbs	5,a,*
	bbs	6,$12,*+1

	bcc	*+2
	bcs	*+3
	beq	*+4

	bit	$12
	bit	$1234

	bmi	*+5
	bne	*+6
	bpl	*+7
	bra	*+8

	brk

	bvc	*+9
	bvs	*+10
	
	clb	2,a
	clb	3,$12
	
	clc
	cld
	cli
	clt
	clv

	cmp	#$12
	cmp	$12
	cmp	$12,x
	cmp	$12,y
	cmp	$1234
	cmp	$1234,x
	cmp	$1234,y
	cmp	($12,x)
	cmp	($12),y

	com	$12

	cpx	#$12
	cpx	$12
	cpx	$1234

	cpy	#$12
	cpy	$12
	cpy	$1234

	dec
	dec	a
	dec	$12
	dec	$12,x
	dec	$1234
	dec	$1234,x

	dex
	dey

	div	$12,x

	eor	#$12
	eor	$12
	eor	$12,x
	eor	$12,y
	eor	$1234
	eor	$1234,x
	eor	$1234,y
	eor	($12,x)
	eor	($12),y

	fst

	inc
	inc	a
	inc	$12
	inc	$12,x
	inc	$1234
	inc	$1234,x

	inx
	iny
	
	jmp	$1234
	jmp	($1234)
	jmp	($12)

	assume	sp:$12
	jsr	$1234
	jsr	\$1234
	jsr	($12)

	lda	#$12
	lda	$12
	lda	$12,x
	lda	$12,y
	lda	$1234
	lda	$1234,x
	lda	$1234,y
	lda	($12,x)
	lda	($12),y
	
	ldm	#$12,$34

	ldx	#$12
	ldx	$12
	ldx	$12,y
	ldx	$1234
	ldx	$1234,y

	ldy	#$12
	ldy	$12
	ldy	$12,x
	ldy	$1234
	ldy	$1234,x

	lsr
	lsr	a
	lsr	$12
	lsr	$12,x
	lsr	$1234
	lsr	$1234,x

	mul	$12,x

	nop

	ora	#$12
	ora	$12
	ora	$12,x
	ora	$12,y
	ora	$1234
	ora	$1234,x
	ora	$1234,y
	ora	($12,x)
	ora	($12),y

	pha
	php
	pla
	plp

	rol
	rol	a
	rol	$12
	rol	$12,x
	rol	$1234
	rol	$1234,x

	ror
	ror	a
	ror	$12
	ror	$12,x
	ror	$1234
	ror	$1234,x
	
	rrf	$12

	rti
	rts

	sbc	#$12
	sbc	$12
	sbc	$12,x
	sbc	$12,y
	sbc	$1234
	sbc	$1234,x
	sbc	$1234,y
	sbc	($12,x)
	sbc	($12),y
	
	seb	2,a
	seb	3,$12
	
	sec
	sed
	sei
	set

	slw

	sta	$12
	sta	$12,x
	sta	$12,y
	sta	$1234
	sta	$1234,x
	sta	$1234,y
	sta	($12,x)
	sta	($12),y

	stp

	stx	$12
	stx	$12,y
	stx	$1234	

	sty	$12
	sty	$12,x
	sty	$1234	

	tax
	tay
	
	tst	$12

	tsx
	txa
	txs
	tya

	wit

        cpu     65c02

        dec     a
        inc     a
        plx
        ply
        phx
        phy

        tsb     $12
        trb     $12
        tsb     $1234
        trb     $1234

        stz     $12
        stz     $1234
        stz     $12,x
        stz     $1234,x

        bit     $12,x
        bit     $1234,x
        bit     #$12

        lda     ($12)
        sta     ($12)
        adc     ($12)
        sbc     ($12)
        and     ($12)
        ora     ($12)
        eor     ($12)
        cmp     ($12)

        jmp     ($12,x)

        bbr2    $12,*
        bbs4    $12,*

        rmb3    $12
        smb5    $12