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 227

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

powered by: WebSVN 2.1.0

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