OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [Open8 Tools/] [open8_src/] [open8_as/] [opcodes_v8urisc.c] - Blame information for rev 295

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 178 jshamlet
struct optcode opt_table[] = {
2
 
3
  { "ADC R0", 0x08, 0, 0 },
4
  { "ADC R1", 0x09, 0, 0 },
5
  { "ADC R2", 0x0a, 0, 0 },
6
  { "ADC R3", 0x0b, 0, 0 },
7
  { "ADC R4", 0x0c, 0, 0 },
8
  { "ADC R5", 0x0d, 0, 0 },
9
  { "ADC R6", 0x0e, 0, 0 },
10
  { "ADC R7", 0x0f, 0, 0 },
11
 
12
  { "ADD R0", 0x50, 0, 0 },
13
  { "ADD R1", 0x51, 0, 0 },
14
  { "ADD R2", 0x52, 0, 0 },
15
  { "ADD R3", 0x53, 0, 0 },
16
  { "ADD R4", 0x54, 0, 0 },
17
  { "ADD R5", 0x55, 0, 0 },
18
  { "ADD R6", 0x56, 0, 0 },
19
  { "ADD R7", 0x57, 0, 0 },
20
 
21
  { "AND R0", 0x20, 0, 0 },
22
  { "AND R1", 0x21, 0, 0 },
23
  { "AND R2", 0x22, 0, 0 },
24
  { "AND R3", 0x23, 0, 0 },
25
  { "AND R4", 0x24, 0, 0 },
26
  { "AND R5", 0x25, 0, 0 },
27
  { "AND R6", 0x26, 0, 0 },
28
  { "AND R7", 0x27, 0, 0 },
29
 
30
  { "BNC x", 0x91, 1, 0 },
31
  { "BNGP4 x", 0x94, 1, 0 },
32
  { "BNGP5 x", 0x95, 1, 0 },
33
  { "BNGP6 x", 0x96, 1, 0 },
34
  { "BNGP7 x", 0x97, 1, 0 },
35
  { "BNI x", 0x93, 1, 0 },
36
  { "BNN x", 0x92, 1, 0 },
37 290 jshamlet
  { "BNS x", 0x94, 1, 0 },
38 178 jshamlet
  { "BNZ x", 0x90, 1, 0 },
39
 
40
  { "BRC x", 0x99, 1, 0 },
41
  { "BRGP4 x", 0x9c, 1, 0 },
42
  { "BRGP5 x", 0x9d, 1, 0 },
43
  { "BRGP6 x", 0x9e, 1, 0 },
44
  { "BRGP7 x", 0x9f, 1, 0 },
45
  { "BRI x", 0x9b, 1, 0 },
46
  { "BRK", 0xbb, 0, 0 },
47
  { "BRN x", 0x9a, 1, 0 },
48 290 jshamlet
  { "BRS x", 0x9c, 1, 0 },
49 178 jshamlet
  { "BRZ x", 0x98, 1, 0 },
50
 
51
  { "BTT 0", 0x60, 0, 0 },
52
  { "BTT 1", 0x61, 0, 0 },
53
  { "BTT 2", 0x62, 0, 0 },
54
  { "BTT 3", 0x63, 0, 0 },
55
  { "BTT 4", 0x64, 0, 0 },
56
  { "BTT 5", 0x65, 0, 0 },
57
  { "BTT 6", 0x66, 0, 0 },
58
  { "BTT 7", 0x67, 0, 0 },
59
 
60
  { "CLP PSR_C", 0x69, 0, 0 },
61
  { "CLP PSR_GP4", 0x6c, 0, 0 },
62
  { "CLP PSR_GP5", 0x6d, 0, 0 },
63
  { "CLP PSR_GP6", 0x6e, 0, 0 },
64
  { "CLP PSR_GP7", 0x6f, 0, 0 },
65
  { "CLP PSR_I", 0x6b, 0, 0 },
66
  { "CLP PSR_N", 0x6a, 0, 0 },
67 290 jshamlet
  { "CLP PSR_S", 0x6c, 0, 0 },
68 178 jshamlet
  { "CLP PSR_Z", 0x68, 0, 0 },
69
 
70
  { "CLR R0", 0x28, 0, 0 },
71
 
72
  { "CMP R0", 0x78, 0, 0 },
73
  { "CMP R1", 0x79, 0, 0 },
74
  { "CMP R2", 0x7a, 0, 0 },
75
  { "CMP R3", 0x7b, 0, 0 },
76
  { "CMP R4", 0x7c, 0, 0 },
77
  { "CMP R5", 0x7d, 0, 0 },
78
  { "CMP R6", 0x7e, 0, 0 },
79
  { "CMP R7", 0x7f, 0, 0 },
80
 
81
  { "DBNZ R0,x", 0xa0, 1, 0 },
82
  { "DBNZ R1,x", 0xa1, 1, 0 },
83
  { "DBNZ R2,x", 0xa2, 1, 0 },
84
  { "DBNZ R3,x", 0xa3, 1, 0 },
85
  { "DBNZ R4,x", 0xa4, 1, 0 },
86
  { "DBNZ R5,x", 0xa5, 1, 0 },
87
  { "DBNZ R6,x", 0xa6, 1, 0 },
88
  { "DBNZ R7,x", 0xa7, 1, 0 },
89
 
90
  { "DEC R0", 0x40, 0, 0 },
91
  { "DEC R1", 0x41, 0, 0 },
92
  { "DEC R2", 0x42, 0, 0 },
93
  { "DEC R3", 0x43, 0, 0 },
94
  { "DEC R4", 0x44, 0, 0 },
95
  { "DEC R5", 0x45, 0, 0 },
96
  { "DEC R6", 0x46, 0, 0 },
97
  { "DEC R7", 0x47, 0, 0 },
98
 
99
  { "GMSK", 0xbe, 0, 0 },
100
 
101
  { "INC R0", 0x00, 0, 0 },
102
  { "INC R1", 0x01, 0, 0 },
103
  { "INC R2", 0x02, 0, 0 },
104
  { "INC R3", 0x03, 0, 0 },
105
  { "INC R4", 0x04, 0, 0 },
106
  { "INC R5", 0x05, 0, 0 },
107
  { "INC R6", 0x06, 0, 0 },
108
  { "INC R7", 0x07, 0, 0 },
109
 
110
  { "INT 0", 0xa8, 0, 0 },
111
  { "INT 1", 0xa9, 0, 0 },
112
  { "INT 2", 0xaa, 0, 0 },
113
  { "INT 3", 0xab, 0, 0 },
114
  { "INT 4", 0xac, 0, 0 },
115
  { "INT 5", 0xad, 0, 0 },
116
  { "INT 6", 0xae, 0, 0 },
117
  { "INT 7", 0xaf, 0, 0 },
118
 
119
  { "JMP ?", 0xbc, 2, 0 },
120
  { "JSR ?", 0xbf, 2, 0 },
121
 
122
  { "LDA R0,?", 0xe8, 2, 0 },
123
  { "LDA R1,?", 0xe9, 2, 0 },
124
  { "LDA R2,?", 0xea, 2, 0 },
125
  { "LDA R3,?", 0xeb, 2, 0 },
126
  { "LDA R4,?", 0xec, 2, 0 },
127
  { "LDA R5,?", 0xed, 2, 0 },
128
  { "LDA R6,?", 0xee, 2, 0 },
129
  { "LDA R7,?", 0xef, 2, 0 },
130
 
131
  { "LDI R0,#x", 0xe0, 4, 0 },
132
  { "LDI R1,#x", 0xe1, 4, 0 },
133
  { "LDI R2,#x", 0xe2, 4, 0 },
134
  { "LDI R3,#x", 0xe3, 4, 0 },
135
  { "LDI R4,#x", 0xe4, 4, 0 },
136
  { "LDI R5,#x", 0xe5, 4, 0 },
137
  { "LDI R6,#x", 0xe6, 4, 0 },
138
  { "LDI R7,#x", 0xe7, 4, 0 },
139
 
140
  { "LDO R0,x", 0xf8, 4, 0 },
141
 
142
  { "LDO R1,x", 0xf9, 4, 0 },
143
  { "LDO R2,x", 0xfa, 4, 0 },
144
  { "LDO R3,x", 0xfb, 4, 0 },
145
  { "LDO R4,x", 0xfc, 4, 0 },
146
  { "LDO R5,x", 0xfd, 4, 0 },
147
  { "LDO R6,x", 0xfe, 4, 0 },
148
  { "LDO R7,x", 0xff, 4, 0 },
149
 
150
  { "LDO R0++,x", 0xf9, 4, 0 },
151
  { "LDO R2++,x", 0xfb, 4, 0 },
152
  { "LDO R4++,x", 0xfd, 4, 0 },
153
  { "LDO R6++,x", 0xff, 4, 0 },
154
 
155
  { "LDX R0", 0xf0, 0, 0 },
156
  { "LDX R1", 0xf1, 0, 0 },
157
  { "LDX R2", 0xf2, 0, 0 },
158
  { "LDX R3", 0xf3, 0, 0 },
159
  { "LDX R4", 0xf4, 0, 0 },
160
  { "LDX R5", 0xf5, 0, 0 },
161
  { "LDX R6", 0xf6, 0, 0 },
162
  { "LDX R7", 0xf7, 0, 0 },
163
 
164
  { "LDX R0++", 0xf1, 0, 0 },
165
  { "LDX R2++", 0xf3, 0, 0 },
166
  { "LDX R4++", 0xf5, 0, 0 },
167
  { "LDX R6++", 0xf7, 0, 0 },
168
 
169
  { "MUL R0", 0xb0, 0, 0 },
170
  { "MUL R1", 0xb1, 0, 0 },
171
  { "MUL R2", 0xb2, 0, 0 },
172
  { "MUL R3", 0xb3, 0, 0 },
173
  { "MUL R4", 0xb4, 0, 0 },
174
  { "MUL R5", 0xb5, 0, 0 },
175
  { "MUL R6", 0xb6, 0, 0 },
176
  { "MUL R7", 0xb7, 0, 0 },
177
 
178
  { "NOP", 0xbb, 0, 0 },
179
 
180
  { "OR R0", 0x18, 0, 0 },
181
  { "OR R1", 0x19, 0, 0 },
182
  { "OR R2", 0x1a, 0, 0 },
183
  { "OR R3", 0x1b, 0, 0 },
184
  { "OR R4", 0x1c, 0, 0 },
185
  { "OR R5", 0x1d, 0, 0 },
186
  { "OR R6", 0x1e, 0, 0 },
187
  { "OR R7", 0x1f, 0, 0 },
188
 
189
  { "POP R0", 0x88, 0, 0 },
190
  { "POP R1", 0x89, 0, 0 },
191
  { "POP R2", 0x8a, 0, 0 },
192
  { "POP R3", 0x8b, 0, 0 },
193
  { "POP R4", 0x8c, 0, 0 },
194
  { "POP R5", 0x8d, 0, 0 },
195
  { "POP R6", 0x8e, 0, 0 },
196
  { "POP R7", 0x8f, 0, 0 },
197
 
198
  { "PSH R0", 0x80, 0, 0 },
199
  { "PSH R1", 0x81, 0, 0 },
200
  { "PSH R2", 0x82, 0, 0 },
201
  { "PSH R3", 0x83, 0, 0 },
202
  { "PSH R4", 0x84, 0, 0 },
203
  { "PSH R5", 0x85, 0, 0 },
204
  { "PSH R6", 0x86, 0, 0 },
205
  { "PSH R7", 0x87, 0, 0 },
206
 
207
  { "ROL R0", 0x30, 0, 0 },
208
  { "ROL R1", 0x31, 0, 0 },
209
  { "ROL R2", 0x32, 0, 0 },
210
  { "ROL R3", 0x33, 0, 0 },
211
  { "ROL R4", 0x34, 0, 0 },
212
  { "ROL R5", 0x35, 0, 0 },
213
  { "ROL R6", 0x36, 0, 0 },
214
  { "ROL R7", 0x37, 0, 0 },
215
 
216
  { "ROR R0", 0x38, 0, 0 },
217
  { "ROR R1", 0x39, 0, 0 },
218
  { "ROR R2", 0x3a, 0, 0 },
219
  { "ROR R3", 0x3b, 0, 0 },
220
  { "ROR R4", 0x3c, 0, 0 },
221
  { "ROR R5", 0x3d, 0, 0 },
222
  { "ROR R6", 0x3e, 0, 0 },
223
  { "ROR R7", 0x3f, 0, 0 },
224
 
225
  { "RSP", 0xb8, 0, 0 },
226
  { "RTI", 0xba, 0, 0 },
227
  { "RTS", 0xb9, 0, 0 },
228
 
229
  { "SBC R0", 0x48, 0, 0 },
230
  { "SBC R1", 0x49, 0, 0 },
231
  { "SBC R2", 0x4a, 0, 0 },
232
  { "SBC R3", 0x4b, 0, 0 },
233
  { "SBC R4", 0x4c, 0, 0 },
234
  { "SBC R5", 0x4d, 0, 0 },
235
  { "SBC R6", 0x4e, 0, 0 },
236
  { "SBC R7", 0x4f, 0, 0 },
237
 
238
  { "SMSK", 0xbd, 0, 0 },
239
 
240
  { "STA R0,?", 0xc8, 2, 0 },
241
  { "STA R1,?", 0xc9, 2, 0 },
242
  { "STA R2,?", 0xca, 2, 0 },
243
  { "STA R3,?", 0xcb, 2, 0 },
244
  { "STA R4,?", 0xcc, 2, 0 },
245
  { "STA R5,?", 0xcd, 2, 0 },
246
  { "STA R6,?", 0xce, 2, 0 },
247
  { "STA R7,?", 0xcf, 2, 0 },
248
 
249
  { "STO R0,x", 0xd8, 4, 0 },
250
  { "STO R1,x", 0xd9, 4, 0 },
251
  { "STO R2,x", 0xda, 4, 0 },
252
  { "STO R3,x", 0xdb, 4, 0 },
253
  { "STO R4,x", 0xdc, 4, 0 },
254
  { "STO R5,x", 0xdd, 4, 0 },
255
  { "STO R6,x", 0xde, 4, 0 },
256
  { "STO R7,x", 0xdf, 4, 0 },
257
 
258
  { "STO R0++,x", 0xd9, 4, 0 },
259
  { "STO R2++,x", 0xdb, 4, 0 },
260
  { "STO R4++,x", 0xdd, 4, 0 },
261
  { "STO R6++,x", 0xdf, 4, 0 },
262
 
263
  { "STP PSR_C", 0x59, 0, 0 },
264
  { "STP PSR_GP4", 0x5c, 0, 0 },
265
  { "STP PSR_GP5", 0x5d, 0, 0 },
266
  { "STP PSR_GP6", 0x5e, 0, 0 },
267
  { "STP PSR_GP7", 0x5f, 0, 0 },
268
  { "STP PSR_I", 0x5b, 0, 0 },
269
  { "STP PSR_N", 0x5a, 0, 0 },
270 290 jshamlet
  { "STP PSR_S", 0x5c, 0, 0 },
271 178 jshamlet
  { "STP PSR_Z", 0x58, 0, 0 },
272
 
273
  { "STX R0", 0xd0, 0, 0 },
274
  { "STX R1", 0xd1, 0, 0 },
275
  { "STX R2", 0xd2, 0, 0 },
276
  { "STX R3", 0xd3, 0, 0 },
277
  { "STX R4", 0xd4, 0, 0 },
278
  { "STX R5", 0xd5, 0, 0 },
279
  { "STX R6", 0xd6, 0, 0 },
280
  { "STX R7", 0xd7, 0, 0 },
281
 
282
  { "STX R0++", 0xd1, 0, 0 },
283
  { "STX R2++", 0xd3, 0, 0 },
284
  { "STX R4++", 0xd5, 0, 0 },
285
  { "STX R6++", 0xd7, 0, 0 },
286
 
287
  { "T0X R0", 0x70, 0, 0 },
288
  { "T0X R1", 0x71, 0, 0 },
289
  { "T0X R2", 0x72, 0, 0 },
290
  { "T0X R3", 0x73, 0, 0 },
291
  { "T0X R4", 0x74, 0, 0 },
292
  { "T0X R5", 0x75, 0, 0 },
293
  { "T0X R6", 0x76, 0, 0 },
294
  { "T0X R7", 0x77, 0, 0 },
295
 
296
  { "TX0 R0", 0x10, 0, 0 },
297
  { "TX0 R1", 0x11, 0, 0 },
298
  { "TX0 R2", 0x12, 0, 0 },
299
  { "TX0 R3", 0x13, 0, 0 },
300
  { "TX0 R4", 0x14, 0, 0 },
301
  { "TX0 R5", 0x15, 0, 0 },
302
  { "TX0 R6", 0x16, 0, 0 },
303
  { "TX0 R7", 0x17, 0, 0 },
304
 
305
  { "UPP R0", 0xc0, 0, 0 },
306
  { "UPP R1", 0xc1, 0, 0 },
307
  { "UPP R2", 0xc2, 0, 0 },
308
  { "UPP R3", 0xc3, 0, 0 },
309
  { "UPP R4", 0xc4, 0, 0 },
310
  { "UPP R5", 0xc5, 0, 0 },
311
  { "UPP R6", 0xc6, 0, 0 },
312
  { "UPP R7", 0xc7, 0, 0 },
313
 
314
//  { "USR R0", 0xa0, 0, 0 },
315
//  { "USR R1", 0xa1, 0, 0 },
316
//  { "USR R2", 0xa2, 0, 0 },
317
//  { "USR R3", 0xa3, 0, 0 },
318
//  { "USR R4", 0xa4, 0, 0 },
319
//  { "USR R5", 0xa5, 0, 0 },
320
//  { "USR R6", 0xa6, 0, 0 },
321
//  { "USR R7", 0xa7, 0, 0 },
322
//
323
//  { "USR2 R0", 0xb0, 0, 0 },
324
//  { "USR2 R1", 0xb1, 0, 0 },
325
//  { "USR2 R2", 0xb2, 0, 0 },
326
//  { "USR2 R3", 0xb3, 0, 0 },
327
//  { "USR2 R4", 0xb4, 0, 0 },
328
//  { "USR2 R5", 0xb5, 0, 0 },
329
//  { "USR2 R6", 0xb6, 0, 0 },
330
//  { "USR2 R7", 0xb7, 0, 0 },
331
 
332
  { "WAI", 0xbb, 0, 0 },
333
 
334
  { "XOR R0", 0x28, 0, 0 },
335
  { "XOR R1", 0x29, 0, 0 },
336
  { "XOR R2", 0x2a, 0, 0 },
337
  { "XOR R3", 0x2b, 0, 0 },
338
  { "XOR R4", 0x2c, 0, 0 },
339
  { "XOR R5", 0x2d, 0, 0 },
340
  { "XOR R6", 0x2e, 0, 0 },
341
  { "XOR R7", 0x2f, 0, 0 },
342
 
343
  { "E", 0x100, -1, 0 }
344
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.