Commit | Line | Data |
---|---|---|
0674ee5d MR |
1 | .set mips16 |
2 | .set noreorder | |
3 | foo: | |
4 | extend 0x123 # ADDIUSP | |
5 | addiu $16, $29, 0 | |
6 | extend 0x123 | |
7 | addiu $16, $29, 128 | |
8 | extend 0x123 | |
9 | addiu $16, $29, 256 | |
10 | extend 0x123 | |
11 | addiu $16, $29, 384 | |
12 | extend 0x123 | |
13 | addiu $16, $29, 512 | |
14 | extend 0x123 | |
15 | addiu $16, $29, 640 | |
16 | extend 0x123 | |
17 | addiu $16, $29, 768 | |
18 | extend 0x123 | |
19 | addiu $16, $29, 896 | |
20 | ||
21 | extend 0x123 # ADDIUPC | |
22 | addiu $16, $pc, 0 | |
23 | extend 0x123 | |
24 | addiu $16, $pc, 128 | |
25 | extend 0x123 | |
26 | addiu $16, $pc, 256 | |
27 | extend 0x123 | |
28 | addiu $16, $pc, 384 | |
29 | extend 0x123 | |
30 | addiu $16, $pc, 512 | |
31 | extend 0x123 | |
32 | addiu $16, $pc, 640 | |
33 | extend 0x123 | |
34 | addiu $16, $pc, 768 | |
35 | extend 0x123 | |
36 | addiu $16, $pc, 896 | |
37 | ||
38 | extend 0x123 # B | |
39 | b . + 2 | |
40 | extend 0x123 | |
41 | b . + 66 | |
42 | extend 0x123 | |
43 | b . + 130 | |
44 | extend 0x123 | |
45 | b . + 194 | |
46 | extend 0x123 | |
47 | b . + 258 | |
48 | extend 0x123 | |
49 | b . + 322 | |
50 | extend 0x123 | |
51 | b . + 386 | |
52 | extend 0x123 | |
53 | b . + 450 | |
54 | ||
55 | extend 0x123 # BEQZ | |
56 | beqz $16, . + 2 | |
57 | extend 0x123 | |
58 | beqz $16, . + 66 | |
59 | extend 0x123 | |
60 | beqz $16, . + 130 | |
61 | extend 0x123 | |
62 | beqz $16, . + 194 | |
63 | extend 0x123 | |
64 | beqz $16, . - 254 | |
65 | extend 0x123 | |
66 | beqz $16, . - 190 | |
67 | extend 0x123 | |
68 | beqz $16, . - 126 | |
69 | extend 0x123 | |
70 | beqz $16, . - 62 | |
71 | ||
72 | extend 0x123 # BNEZ | |
73 | bnez $16, . + 2 | |
74 | extend 0x123 | |
75 | bnez $16, . + 66 | |
76 | extend 0x123 | |
77 | bnez $16, . + 130 | |
78 | extend 0x123 | |
79 | bnez $16, . + 194 | |
80 | extend 0x123 | |
81 | bnez $16, . - 254 | |
82 | extend 0x123 | |
83 | bnez $16, . - 190 | |
84 | extend 0x123 | |
85 | bnez $16, . - 126 | |
86 | extend 0x123 | |
87 | bnez $16, . - 62 | |
88 | ||
89 | extend 0x123 # SHIFT # SLL | |
90 | sll $16, $16, 8 | |
91 | extend 0x123 | |
92 | sll $16, $16, 1 | |
93 | extend 0x123 | |
94 | sll $16, $16, 2 | |
95 | extend 0x123 | |
96 | sll $16, $16, 3 | |
97 | extend 0x123 | |
98 | sll $16, $16, 4 | |
99 | extend 0x123 | |
100 | sll $16, $16, 5 | |
101 | extend 0x123 | |
102 | sll $16, $16, 6 | |
103 | extend 0x123 | |
104 | sll $16, $16, 7 | |
105 | ||
106 | extend 0x123 # DSLL | |
107 | dsll $16, $16, 8 | |
108 | extend 0x123 | |
109 | dsll $16, $16, 1 | |
110 | extend 0x123 | |
111 | dsll $16, $16, 2 | |
112 | extend 0x123 | |
113 | dsll $16, $16, 3 | |
114 | extend 0x123 | |
115 | dsll $16, $16, 4 | |
116 | extend 0x123 | |
117 | dsll $16, $16, 5 | |
118 | extend 0x123 | |
119 | dsll $16, $16, 6 | |
120 | extend 0x123 | |
121 | dsll $16, $16, 7 | |
122 | ||
123 | extend 0x123 # SRL | |
124 | srl $16, $16, 8 | |
125 | extend 0x123 | |
126 | srl $16, $16, 1 | |
127 | extend 0x123 | |
128 | srl $16, $16, 2 | |
129 | extend 0x123 | |
130 | srl $16, $16, 3 | |
131 | extend 0x123 | |
132 | srl $16, $16, 4 | |
133 | extend 0x123 | |
134 | srl $16, $16, 5 | |
135 | extend 0x123 | |
136 | srl $16, $16, 6 | |
137 | extend 0x123 | |
138 | srl $16, $16, 7 | |
139 | ||
140 | extend 0x123 # SRA | |
141 | sra $16, $16, 8 | |
142 | extend 0x123 | |
143 | sra $16, $16, 1 | |
144 | extend 0x123 | |
145 | sra $16, $16, 2 | |
146 | extend 0x123 | |
147 | sra $16, $16, 3 | |
148 | extend 0x123 | |
149 | sra $16, $16, 4 | |
150 | extend 0x123 | |
151 | sra $16, $16, 5 | |
152 | extend 0x123 | |
153 | sra $16, $16, 6 | |
154 | extend 0x123 | |
155 | sra $16, $16, 7 | |
156 | ||
157 | extend 0x123 # LD | |
158 | ld $16, 0($16) | |
159 | ||
160 | extend 0x123 # RRI-A # ADDIU | |
161 | addiu $16, $16, 0 | |
162 | extend 0x123 # DADDIU | |
163 | daddiu $16, $16, 0 | |
164 | ||
165 | extend 0x123 # ADDIU8 | |
166 | addiu $16, 0 | |
167 | extend 0x123 | |
168 | addiu $16, 32 | |
169 | extend 0x123 | |
170 | addiu $16, 64 | |
171 | extend 0x123 | |
172 | addiu $16, 96 | |
173 | extend 0x123 | |
174 | addiu $16, -128 | |
175 | extend 0x123 | |
176 | addiu $16, -96 | |
177 | extend 0x123 | |
178 | addiu $16, -64 | |
179 | extend 0x123 | |
180 | addiu $16, -32 | |
181 | ||
182 | extend 0x123 # SLTI | |
183 | slti $16, 0 | |
184 | extend 0x123 | |
185 | slti $16, 32 | |
186 | extend 0x123 | |
187 | slti $16, 64 | |
188 | extend 0x123 | |
189 | slti $16, 96 | |
190 | extend 0x123 | |
191 | slti $16, 128 | |
192 | extend 0x123 | |
193 | slti $16, 160 | |
194 | extend 0x123 | |
195 | slti $16, 192 | |
196 | extend 0x123 | |
197 | slti $16, 224 | |
198 | ||
199 | extend 0x123 # SLTIU | |
200 | sltiu $16, 0 | |
201 | extend 0x123 | |
202 | sltiu $16, 32 | |
203 | extend 0x123 | |
204 | sltiu $16, 64 | |
205 | extend 0x123 | |
206 | sltiu $16, 96 | |
207 | extend 0x123 | |
208 | sltiu $16, 128 | |
209 | extend 0x123 | |
210 | sltiu $16, 160 | |
211 | extend 0x123 | |
212 | sltiu $16, 192 | |
213 | extend 0x123 | |
214 | sltiu $16, 224 | |
215 | ||
216 | extend 0x123 # I8 # BTEQZ | |
217 | bteqz . + 2 | |
218 | extend 0x123 | |
219 | bteqz . + 66 | |
220 | extend 0x123 | |
221 | bteqz . + 130 | |
222 | extend 0x123 | |
223 | bteqz . + 194 | |
224 | extend 0x123 | |
225 | bteqz . - 254 | |
226 | extend 0x123 | |
227 | bteqz . - 190 | |
228 | extend 0x123 | |
229 | bteqz . - 126 | |
230 | extend 0x123 | |
231 | bteqz . - 62 | |
232 | ||
233 | extend 0x123 # BTNEZ | |
234 | btnez . + 2 | |
235 | extend 0x123 | |
236 | btnez . + 66 | |
237 | extend 0x123 | |
238 | btnez . + 130 | |
239 | extend 0x123 | |
240 | btnez . + 194 | |
241 | extend 0x123 | |
242 | btnez . - 254 | |
243 | extend 0x123 | |
244 | btnez . - 190 | |
245 | extend 0x123 | |
246 | btnez . - 126 | |
247 | extend 0x123 | |
248 | btnez . - 62 | |
249 | ||
250 | extend 0x123 # SWRASP | |
251 | sw $31, 0($29) | |
252 | extend 0x123 | |
253 | sw $31, 128($29) | |
254 | extend 0x123 | |
255 | sw $31, 256($29) | |
256 | extend 0x123 | |
257 | sw $31, 512($29) | |
258 | extend 0x123 | |
259 | sw $31, 640($29) | |
260 | extend 0x123 | |
261 | sw $31, 768($29) | |
262 | extend 0x123 | |
263 | sw $31, 896($29) | |
264 | extend 0x123 | |
265 | sw $31, 0($29) | |
266 | ||
267 | extend 0x123 # ADJSP | |
268 | addiu $29, 0 | |
269 | extend 0x123 | |
270 | addiu $29, 256 | |
271 | extend 0x123 | |
272 | addiu $29, 512 | |
273 | extend 0x123 | |
274 | addiu $29, 768 | |
275 | extend 0x123 | |
276 | addiu $29, -1024 | |
277 | extend 0x123 | |
278 | addiu $29, -768 | |
279 | extend 0x123 | |
280 | addiu $29, -512 | |
281 | extend 0x123 | |
282 | addiu $29, -256 | |
283 | ||
284 | extend 0x123 # SVRS # RESTORE | |
285 | restore 128 | |
286 | extend 0x123 # SAVE | |
287 | save 128 | |
288 | ||
289 | extend 0x123 # MOV32R | |
290 | move $0, $16 | |
291 | extend 0x123 | |
292 | move $0, $17 | |
293 | ||
294 | extend 0x123 # MOVR32 | |
295 | move $16, $0 | |
296 | ||
297 | extend 0x123 # LI | |
298 | li $16, 0 | |
299 | extend 0x123 | |
300 | li $16, 32 | |
301 | extend 0x123 | |
302 | li $16, 64 | |
303 | extend 0x123 | |
304 | li $16, 96 | |
305 | extend 0x123 | |
306 | li $16, 128 | |
307 | extend 0x123 | |
308 | li $16, 160 | |
309 | extend 0x123 | |
310 | li $16, 192 | |
311 | extend 0x123 | |
312 | li $16, 224 | |
313 | ||
314 | extend 0x123 # CMPI | |
315 | cmpi $16, 0 | |
316 | extend 0x123 | |
317 | cmpi $16, 32 | |
318 | extend 0x123 | |
319 | cmpi $16, 64 | |
320 | extend 0x123 | |
321 | cmpi $16, 96 | |
322 | extend 0x123 | |
323 | cmpi $16, 128 | |
324 | extend 0x123 | |
325 | cmpi $16, 160 | |
326 | extend 0x123 | |
327 | cmpi $16, 192 | |
328 | extend 0x123 | |
329 | cmpi $16, 224 | |
330 | ||
331 | extend 0x123 # SD | |
332 | sd $16, 0($16) | |
333 | ||
334 | extend 0x123 # LB | |
335 | lb $16, 0($16) | |
336 | ||
337 | extend 0x123 # LH | |
338 | lh $16, 0($16) | |
339 | ||
340 | extend 0x123 # LWSP | |
341 | lw $16, 0($29) | |
342 | extend 0x123 | |
343 | lw $16, 128($29) | |
344 | extend 0x123 | |
345 | lw $16, 256($29) | |
346 | extend 0x123 | |
347 | lw $16, 384($29) | |
348 | extend 0x123 | |
349 | lw $16, 512($29) | |
350 | extend 0x123 | |
351 | lw $16, 640($29) | |
352 | extend 0x123 | |
353 | lw $16, 768($29) | |
354 | extend 0x123 | |
355 | lw $16, 896($29) | |
356 | ||
357 | extend 0x123 # LW | |
358 | lw $16, 0($16) | |
359 | ||
360 | extend 0x123 # LBU | |
361 | lbu $16, 0($16) | |
362 | ||
363 | extend 0x123 # LHU | |
364 | lhu $16, 0($16) | |
365 | ||
366 | extend 0x123 # LWPC | |
367 | lw $16, 0($pc) | |
368 | extend 0x123 | |
369 | lw $16, 128($pc) | |
370 | extend 0x123 | |
371 | lw $16, 256($pc) | |
372 | extend 0x123 | |
373 | lw $16, 384($pc) | |
374 | extend 0x123 | |
375 | lw $16, 512($pc) | |
376 | extend 0x123 | |
377 | lw $16, 640($pc) | |
378 | extend 0x123 | |
379 | lw $16, 768($pc) | |
380 | extend 0x123 | |
381 | lw $16, 896($pc) | |
382 | ||
383 | extend 0x123 # LWU | |
384 | lwu $16, 0($16) | |
385 | ||
386 | extend 0x123 # SB | |
387 | sb $16, 0($16) | |
388 | ||
389 | extend 0x123 # SH | |
390 | sh $16, 0($16) | |
391 | ||
392 | extend 0x123 # SWSP | |
393 | sw $16, 0($29) | |
394 | extend 0x123 | |
395 | sw $16, 128($29) | |
396 | extend 0x123 | |
397 | sw $16, 256($29) | |
398 | extend 0x123 | |
399 | sw $16, 384($29) | |
400 | extend 0x123 | |
401 | sw $16, 512($29) | |
402 | extend 0x123 | |
403 | sw $16, 640($29) | |
404 | extend 0x123 | |
405 | sw $16, 768($29) | |
406 | extend 0x123 | |
407 | sw $16, 896($29) | |
408 | ||
409 | extend 0x123 # SW | |
410 | sw $16, 0($16) | |
411 | ||
412 | extend 0x123 # RRR # DADDU | |
413 | daddu $16, $16, $16 | |
414 | ||
415 | extend 0x123 # ADDU | |
416 | addu $16, $16, $16 | |
417 | ||
418 | extend 0x123 # DSUBU | |
419 | dsubu $16, $16, $16 | |
420 | ||
421 | extend 0x123 # SUBU | |
422 | subu $16, $16, $16 | |
423 | ||
424 | extend 0x123 # RR # J(AL)R(C) # JR rx | |
425 | jr $16 | |
426 | extend 0x123 # JR ra | |
427 | jr $31 | |
428 | extend 0x123 # JALR | |
429 | jalr $16 | |
430 | extend 0x123 # JRC rx | |
431 | jrc $16 | |
432 | extend 0x123 # JRC ra | |
433 | jrc $31 | |
434 | extend 0x123 # JALRC | |
435 | jalrc $16 | |
436 | ||
437 | extend 0x123 # SDBBP | |
438 | sdbbp 0 | |
439 | ||
440 | extend 0x123 # SLT | |
441 | slt $16, $16 | |
442 | ||
443 | extend 0x123 # SLTU | |
444 | sltu $16, $16 | |
445 | ||
446 | extend 0x123 # SLLV | |
447 | sllv $16, $16 | |
448 | ||
449 | extend 0x123 # BREAK | |
450 | break 0 | |
451 | ||
452 | extend 0x123 # SRLV | |
453 | srlv $16, $16 | |
454 | ||
455 | extend 0x123 # SRAV | |
456 | srav $16, $16 | |
457 | ||
458 | extend 0x123 # DSRL | |
459 | dsrl $16, 8 | |
460 | extend 0x123 | |
461 | dsrl $16, 1 | |
462 | extend 0x123 | |
463 | dsrl $16, 2 | |
464 | extend 0x123 | |
465 | dsrl $16, 3 | |
466 | extend 0x123 | |
467 | dsrl $16, 4 | |
468 | extend 0x123 | |
469 | dsrl $16, 5 | |
470 | extend 0x123 | |
471 | dsrl $16, 6 | |
472 | extend 0x123 | |
473 | dsrl $16, 7 | |
474 | ||
475 | extend 0x123 # ENTRY/EXIT | |
476 | entry | |
477 | extend 0x123 | |
478 | entry $31 | |
479 | extend 0x123 | |
480 | exit $f0 | |
481 | extend 0x123 | |
482 | exit $f0-$f1 | |
483 | extend 0x123 | |
484 | exit | |
485 | ||
486 | extend 0x123 # CMP | |
487 | cmp $16, $16 | |
488 | ||
489 | extend 0x123 # NEG | |
490 | neg $16, $16 | |
491 | ||
492 | extend 0x123 # AND | |
493 | and $16, $16 | |
494 | ||
495 | extend 0x123 # OR | |
496 | or $16, $16 | |
497 | ||
498 | extend 0x123 # XOR | |
499 | xor $16, $16 | |
500 | ||
501 | extend 0x123 # NOT | |
502 | not $16, $16 | |
503 | ||
504 | extend 0x123 # MFHI | |
505 | mfhi $16 | |
506 | ||
507 | extend 0x123 # CNVT # ZEB | |
508 | zeb $16 | |
509 | extend 0x123 # ZEH | |
510 | zeh $16 | |
511 | extend 0x123 # ZEW | |
512 | zew $16 | |
513 | extend 0x123 # SEB | |
514 | seb $16 | |
515 | extend 0x123 # SEH | |
516 | seh $16 | |
517 | extend 0x123 # SEW | |
518 | sew $16 | |
519 | ||
520 | extend 0x123 # MFLO | |
521 | mflo $16 | |
522 | ||
523 | extend 0x123 # DSRA | |
524 | dsra $16, 8 | |
525 | extend 0x123 | |
526 | dsra $16, 1 | |
527 | extend 0x123 | |
528 | dsra $16, 2 | |
529 | extend 0x123 | |
530 | dsra $16, 3 | |
531 | extend 0x123 | |
532 | dsra $16, 4 | |
533 | extend 0x123 | |
534 | dsra $16, 5 | |
535 | extend 0x123 | |
536 | dsra $16, 6 | |
537 | extend 0x123 | |
538 | dsra $16, 7 | |
539 | ||
540 | extend 0x123 # DSLLV | |
541 | dsllv $16, $16 | |
542 | ||
543 | extend 0x123 # DSRLV | |
544 | dsrlv $16, $16 | |
545 | ||
546 | extend 0x123 # DSRAV | |
547 | dsrav $16, $16 | |
548 | ||
549 | extend 0x123 # MULT | |
550 | mult $16, $16 | |
551 | ||
552 | extend 0x123 # MULTU | |
553 | multu $16, $16 | |
554 | ||
555 | extend 0x123 # DIV | |
556 | div $0, $16, $16 | |
557 | ||
558 | extend 0x123 # DIVU | |
559 | divu $0, $16, $16 | |
560 | ||
561 | extend 0x123 # DMULT | |
562 | dmult $16, $16 | |
563 | ||
564 | extend 0x123 # DMULTU | |
565 | dmultu $16, $16 | |
566 | ||
567 | extend 0x123 # DDIV | |
568 | ddiv $0, $16, $16 | |
569 | ||
570 | extend 0x123 # DDIVU | |
571 | ddivu $0, $16, $16 | |
572 | ||
573 | extend 0x123 # EXTEND | |
574 | extend 0 | |
575 | ||
576 | extend 0x123 # I64 # LDSP | |
577 | ld $16, 0($29) | |
578 | ||
579 | extend 0x123 # SDSP | |
580 | sd $16, 0($29) | |
581 | ||
582 | extend 0x123 # SDRASP | |
583 | sd $31, 0($29) | |
584 | extend 0x123 | |
585 | sd $31, 256($29) | |
586 | extend 0x123 | |
587 | sd $31, 512($29) | |
588 | extend 0x123 | |
589 | sd $31, 768($29) | |
590 | extend 0x123 | |
591 | sd $31, 1024($29) | |
592 | extend 0x123 | |
593 | sd $31, 1280($29) | |
594 | extend 0x123 | |
595 | sd $31, 1536($29) | |
596 | extend 0x123 | |
597 | sd $31, 1792($29) | |
598 | ||
599 | extend 0x123 # DADJSP | |
600 | daddiu $29, 0 | |
601 | extend 0x123 | |
602 | daddiu $29, 256 | |
603 | extend 0x123 | |
604 | daddiu $29, 512 | |
605 | extend 0x123 | |
606 | daddiu $29, 768 | |
607 | extend 0x123 | |
608 | daddiu $29, -1024 | |
609 | extend 0x123 | |
610 | daddiu $29, -768 | |
611 | extend 0x123 | |
612 | daddiu $29, -512 | |
613 | extend 0x123 | |
614 | daddiu $29, -256 | |
615 | ||
616 | extend 0x123 # LDPC | |
617 | ld $16, 0($pc) | |
618 | ||
619 | extend 0x123 # DADDIU5 | |
620 | daddiu $16, 0 | |
621 | ||
622 | extend 0x123 # DADDIUPC | |
623 | daddiu $16, $pc, 0 | |
624 | ||
625 | extend 0x123 # DADDIUSP | |
626 | daddiu $16, $sp, 0 | |
627 | ||
628 | # Force some (non-delay-slot) zero bytes, to make 'objdump' print ... | |
629 | .align 4, 0 | |
630 | .space 16 |