Debian Codegraph @

test/suite6502.asm

raw
1
2 ; TEST ADDRESSING MODES
3
4 processor 6502
5
6 org 0
7
8 adc #1
9 adc 1
10 adc 1,x
11 adc 1,y ;absolute
12 adc 1000
13 adc 1000,x
14 adc 1000,y
15 adc (1,x)
16 adc (1),y
17
18 and #1
19 and 1
20 and 1,x
21 and 1,y ;absolute
22 and 1000
23 and 1000,x
24 and 1000,y
25 and (1,x)
26 and (1),y
27
28 asl
29 asl 1
30 asl 1,x
31 asl 1000
32 asl 1000,x
33
34 bcc .
35 bcs .
36 beq .
37 bit 1
38 bit 1000
39 bmi .
40 bne .
41 bpl .
42 brk
43 bvc .
44 bvs .
45 clc
46 cld
47 cli
48 clv
49
50 cmp #1
51 cmp 1
52 cmp 1,x
53 cmp 1,y ;absolute
54 cmp 1000
55 cmp 1000,x
56 cmp 1000,y
57 cmp (1,x)
58 cmp (1),y
59
60 cpx #1
61 cpx 1
62 cpx 1000
63
64 cpy #1
65 cpy 1
66 cpy 1000
67
68 dec 1
69 dec 1,x
70 dec 1000
71 dec 1000,x
72
73 dex
74 dey
75
76 eor #1
77 eor 1
78 eor 1,x
79 eor 1,y ;absolute
80 eor 1000
81 eor 1000,x
82 eor 1000,y
83 eor (1,x)
84 eor (1),y
85
86 inc 1
87 inc 1,x
88 inc 1000
89 inc 1000,x
90
91 inx
92 iny
93
94 jmp 1 ;absolute
95 jmp 1000
96 jmp (1) ;absolute
97 jmp (1000)
98
99 jsr 1 ;absolute
100 jsr 1000
101
102 lda #1
103 lda 1
104 lda 1,x
105 lda 1,y ;absolute
106 lda 1000
107 lda 1000,x
108 lda 1000,y
109 lda (1,x)
110 lda (1),y
111
112 ldx #1
113 ldx 1
114 ldx 1,y
115 ldx 1000
116 ldx 1000,y
117
118 ldy #1
119 ldy 1
120 ldy 1,x
121 ldy 1000
122 ldy 1000,x
123
124 lsr
125 lsr 1
126 lsr 1,x
127 lsr 1000
128 lsr 1000,x
129
130 nop
131
132 ora #1
133 ora 1
134 ora 1,x
135 ora 1,y ;absolute
136 ora 1000
137 ora 1000,x
138 ora 1000,y
139 ora (1,x)
140 ora (1),y
141
142 pha
143 php
144 pla
145 plp
146
147 rol
148 rol 1
149 rol 1,x
150 rol 1000
151 rol 1000,x
152
153 ror
154 ror 1
155 ror 1,x
156 ror 1000
157 ror 1000,x
158
159 rti
160 rts
161
162 sbc #1
163 sbc 1
164 sbc 1,x
165 sbc 1,y ;absolute
166 sbc 1000
167 sbc 1000,x
168 sbc 1000,y
169 sbc (1,x)
170 sbc (1),y
171
172 sec
173 sed
174 sei
175
176 sta 1
177 sta 1,x
178 sta 1,y ;absolute
179 sta 1000
180 sta 1000,x
181 sta 1000,y
182 sta (1,x)
183 sta (1),y
184
185 stx 1
186 stx 1,y
187 stx 1000
188
189 sty 1
190 sty 1,x
191 sty 1000
192
193 tax
194 tay
195 tsx
196 txa
197 txs
198 tya
199
200
201