Previous 199869 Revisions Next

r33924 Tuesday 16th December, 2014 at 10:33:33 UTC by David Haywood
arcompact dasm wip (nw)
[src/emu/cpu/arcompact]arcompactdasm_dispatch.c arcompactdasm_dispatch.h arcompactdasm_ops.c arcompactdasm_ops.h

trunk/src/emu/cpu/arcompact/arcompactdasm_dispatch.c
r242435r242436
295295   return size;
296296}
297297
298
299int arcompact_handle05_2f_dasm(DASM_OPS_32)
300{
301   int size = 4;
302   UINT8 subinstr2 = (op & 0x0000003f) >> 0;
303   op &= ~0x0000003f;
304
305   switch (subinstr2)
306   {
307      case 0x00: size = arcompact_handle05_2f_00_dasm(DASM_PARAMS); break; // SWAP
308      case 0x01: size = arcompact_handle05_2f_01_dasm(DASM_PARAMS); break; // NORM
309      case 0x02: size = arcompact_handle05_2f_02_dasm(DASM_PARAMS); break; // SAT16
310      case 0x03: size = arcompact_handle05_2f_03_dasm(DASM_PARAMS); break; // RND16
311      case 0x04: size = arcompact_handle05_2f_04_dasm(DASM_PARAMS); break; // ABSSW
312      case 0x05: size = arcompact_handle05_2f_05_dasm(DASM_PARAMS); break; // ABSS
313      case 0x06: size = arcompact_handle05_2f_06_dasm(DASM_PARAMS); break; // NEGSW
314      case 0x07: size = arcompact_handle05_2f_07_dasm(DASM_PARAMS); break; // NEGS
315      case 0x08: size = arcompact_handle05_2f_08_dasm(DASM_PARAMS); break; // NORMW
316      case 0x09: size = arcompact_handle05_2f_09_dasm(DASM_PARAMS); break; // illegal
317      case 0x0a: size = arcompact_handle05_2f_0a_dasm(DASM_PARAMS); break; // illegal
318      case 0x0b: size = arcompact_handle05_2f_0b_dasm(DASM_PARAMS); break; // illegal
319      case 0x0c: size = arcompact_handle05_2f_0c_dasm(DASM_PARAMS); break; // illegal
320      case 0x0d: size = arcompact_handle05_2f_0d_dasm(DASM_PARAMS); break; // illegal
321      case 0x0e: size = arcompact_handle05_2f_0e_dasm(DASM_PARAMS); break; // illegal
322      case 0x0f: size = arcompact_handle05_2f_0f_dasm(DASM_PARAMS); break; // illegal
323      case 0x10: size = arcompact_handle05_2f_10_dasm(DASM_PARAMS); break; // illegal
324      case 0x11: size = arcompact_handle05_2f_11_dasm(DASM_PARAMS); break; // illegal
325      case 0x12: size = arcompact_handle05_2f_12_dasm(DASM_PARAMS); break; // illegal
326      case 0x13: size = arcompact_handle05_2f_13_dasm(DASM_PARAMS); break; // illegal
327      case 0x14: size = arcompact_handle05_2f_14_dasm(DASM_PARAMS); break; // illegal
328      case 0x15: size = arcompact_handle05_2f_15_dasm(DASM_PARAMS); break; // illegal
329      case 0x16: size = arcompact_handle05_2f_16_dasm(DASM_PARAMS); break; // illegal
330      case 0x17: size = arcompact_handle05_2f_17_dasm(DASM_PARAMS); break; // illegal
331      case 0x18: size = arcompact_handle05_2f_18_dasm(DASM_PARAMS); break; // illegal
332      case 0x19: size = arcompact_handle05_2f_19_dasm(DASM_PARAMS); break; // illegal
333      case 0x1a: size = arcompact_handle05_2f_1a_dasm(DASM_PARAMS); break; // illegal
334      case 0x1b: size = arcompact_handle05_2f_1b_dasm(DASM_PARAMS); break; // illegal
335      case 0x1c: size = arcompact_handle05_2f_1c_dasm(DASM_PARAMS); break; // illegal
336      case 0x1d: size = arcompact_handle05_2f_1d_dasm(DASM_PARAMS); break; // illegal
337      case 0x1e: size = arcompact_handle05_2f_1e_dasm(DASM_PARAMS); break; // illegal
338      case 0x1f: size = arcompact_handle05_2f_1f_dasm(DASM_PARAMS); break; // illegal
339      case 0x20: size = arcompact_handle05_2f_20_dasm(DASM_PARAMS); break; // illegal
340      case 0x21: size = arcompact_handle05_2f_21_dasm(DASM_PARAMS); break; // illegal
341      case 0x22: size = arcompact_handle05_2f_22_dasm(DASM_PARAMS); break; // illegal
342      case 0x23: size = arcompact_handle05_2f_23_dasm(DASM_PARAMS); break; // illegal
343      case 0x24: size = arcompact_handle05_2f_24_dasm(DASM_PARAMS); break; // illegal
344      case 0x25: size = arcompact_handle05_2f_25_dasm(DASM_PARAMS); break; // illegal
345      case 0x26: size = arcompact_handle05_2f_26_dasm(DASM_PARAMS); break; // illegal
346      case 0x27: size = arcompact_handle05_2f_27_dasm(DASM_PARAMS); break; // illegal
347      case 0x28: size = arcompact_handle05_2f_28_dasm(DASM_PARAMS); break; // illegal
348      case 0x29: size = arcompact_handle05_2f_29_dasm(DASM_PARAMS); break; // illegal
349      case 0x2a: size = arcompact_handle05_2f_2a_dasm(DASM_PARAMS); break; // illegal
350      case 0x2b: size = arcompact_handle05_2f_2b_dasm(DASM_PARAMS); break; // illegal
351      case 0x2c: size = arcompact_handle05_2f_2c_dasm(DASM_PARAMS); break; // illegal
352      case 0x2d: size = arcompact_handle05_2f_2d_dasm(DASM_PARAMS); break; // illegal
353      case 0x2e: size = arcompact_handle05_2f_2e_dasm(DASM_PARAMS); break; // illegal
354      case 0x2f: size = arcompact_handle05_2f_2f_dasm(DASM_PARAMS); break; // illegal
355      case 0x30: size = arcompact_handle05_2f_30_dasm(DASM_PARAMS); break; // illegal
356      case 0x31: size = arcompact_handle05_2f_31_dasm(DASM_PARAMS); break; // illegal
357      case 0x32: size = arcompact_handle05_2f_32_dasm(DASM_PARAMS); break; // illegal
358      case 0x33: size = arcompact_handle05_2f_33_dasm(DASM_PARAMS); break; // illegal
359      case 0x34: size = arcompact_handle05_2f_34_dasm(DASM_PARAMS); break; // illegal
360      case 0x35: size = arcompact_handle05_2f_35_dasm(DASM_PARAMS); break; // illegal
361      case 0x36: size = arcompact_handle05_2f_36_dasm(DASM_PARAMS); break; // illegal
362      case 0x37: size = arcompact_handle05_2f_37_dasm(DASM_PARAMS); break; // illegal
363      case 0x38: size = arcompact_handle05_2f_38_dasm(DASM_PARAMS); break; // illegal
364      case 0x39: size = arcompact_handle05_2f_39_dasm(DASM_PARAMS); break; // illegal
365      case 0x3a: size = arcompact_handle05_2f_3a_dasm(DASM_PARAMS); break; // illegal
366      case 0x3b: size = arcompact_handle05_2f_3b_dasm(DASM_PARAMS); break; // illegal
367      case 0x3c: size = arcompact_handle05_2f_3c_dasm(DASM_PARAMS); break; // illegal
368      case 0x3d: size = arcompact_handle05_2f_3d_dasm(DASM_PARAMS); break; // illegal
369      case 0x3e: size = arcompact_handle05_2f_3e_dasm(DASM_PARAMS); break; // illegal
370      case 0x3f: size = arcompact_handle05_2f_3f_dasm(DASM_PARAMS); break; // ZOPs (Zero Operand Opcodes)
371   }
372
373   return size;
374}
375
298376int arcompact_handle04_2f_3f_dasm(DASM_OPS_32)
299377{
300378   int size = 4;
r242435r242436
374452   return size;
375453}
376454
455
456int arcompact_handle05_2f_3f_dasm(DASM_OPS_32) // useless ZOP group, no actual opcodes
457{
458   int size = 4;
459   UINT8 subinstr3 = (op & 0x07000000) >> 24;
460   subinstr3 |= ((op & 0x00007000) >> 12) << 3;
461
462   op &= ~0x07007000;
463
464   switch (subinstr3)
465   {
466      case 0x00: size = arcompact_handle05_2f_3f_00_dasm(DASM_PARAMS); break; // illegal
467      case 0x01: size = arcompact_handle05_2f_3f_01_dasm(DASM_PARAMS); break; // illegal
468      case 0x02: size = arcompact_handle05_2f_3f_02_dasm(DASM_PARAMS); break; // illegal
469      case 0x03: size = arcompact_handle05_2f_3f_03_dasm(DASM_PARAMS); break; // illegal
470      case 0x04: size = arcompact_handle05_2f_3f_04_dasm(DASM_PARAMS); break; // illegal
471      case 0x05: size = arcompact_handle05_2f_3f_05_dasm(DASM_PARAMS); break; // illegal
472      case 0x06: size = arcompact_handle05_2f_3f_06_dasm(DASM_PARAMS); break; // illegal
473      case 0x07: size = arcompact_handle05_2f_3f_07_dasm(DASM_PARAMS); break; // illegal
474      case 0x08: size = arcompact_handle05_2f_3f_08_dasm(DASM_PARAMS); break; // illegal
475      case 0x09: size = arcompact_handle05_2f_3f_09_dasm(DASM_PARAMS); break; // illegal
476      case 0x0a: size = arcompact_handle05_2f_3f_0a_dasm(DASM_PARAMS); break; // illegal
477      case 0x0b: size = arcompact_handle05_2f_3f_0b_dasm(DASM_PARAMS); break; // illegal
478      case 0x0c: size = arcompact_handle05_2f_3f_0c_dasm(DASM_PARAMS); break; // illegal
479      case 0x0d: size = arcompact_handle05_2f_3f_0d_dasm(DASM_PARAMS); break; // illegal
480      case 0x0e: size = arcompact_handle05_2f_3f_0e_dasm(DASM_PARAMS); break; // illegal
481      case 0x0f: size = arcompact_handle05_2f_3f_0f_dasm(DASM_PARAMS); break; // illegal
482      case 0x10: size = arcompact_handle05_2f_3f_10_dasm(DASM_PARAMS); break; // illegal
483      case 0x11: size = arcompact_handle05_2f_3f_11_dasm(DASM_PARAMS); break; // illegal
484      case 0x12: size = arcompact_handle05_2f_3f_12_dasm(DASM_PARAMS); break; // illegal
485      case 0x13: size = arcompact_handle05_2f_3f_13_dasm(DASM_PARAMS); break; // illegal
486      case 0x14: size = arcompact_handle05_2f_3f_14_dasm(DASM_PARAMS); break; // illegal
487      case 0x15: size = arcompact_handle05_2f_3f_15_dasm(DASM_PARAMS); break; // illegal
488      case 0x16: size = arcompact_handle05_2f_3f_16_dasm(DASM_PARAMS); break; // illegal
489      case 0x17: size = arcompact_handle05_2f_3f_17_dasm(DASM_PARAMS); break; // illegal
490      case 0x18: size = arcompact_handle05_2f_3f_18_dasm(DASM_PARAMS); break; // illegal
491      case 0x19: size = arcompact_handle05_2f_3f_19_dasm(DASM_PARAMS); break; // illegal
492      case 0x1a: size = arcompact_handle05_2f_3f_1a_dasm(DASM_PARAMS); break; // illegal
493      case 0x1b: size = arcompact_handle05_2f_3f_1b_dasm(DASM_PARAMS); break; // illegal
494      case 0x1c: size = arcompact_handle05_2f_3f_1c_dasm(DASM_PARAMS); break; // illegal
495      case 0x1d: size = arcompact_handle05_2f_3f_1d_dasm(DASM_PARAMS); break; // illegal
496      case 0x1e: size = arcompact_handle05_2f_3f_1e_dasm(DASM_PARAMS); break; // illegal
497      case 0x1f: size = arcompact_handle05_2f_3f_1f_dasm(DASM_PARAMS); break; // illegal
498      case 0x20: size = arcompact_handle05_2f_3f_20_dasm(DASM_PARAMS); break; // illegal
499      case 0x21: size = arcompact_handle05_2f_3f_21_dasm(DASM_PARAMS); break; // illegal
500      case 0x22: size = arcompact_handle05_2f_3f_22_dasm(DASM_PARAMS); break; // illegal
501      case 0x23: size = arcompact_handle05_2f_3f_23_dasm(DASM_PARAMS); break; // illegal
502      case 0x24: size = arcompact_handle05_2f_3f_24_dasm(DASM_PARAMS); break; // illegal
503      case 0x25: size = arcompact_handle05_2f_3f_25_dasm(DASM_PARAMS); break; // illegal
504      case 0x26: size = arcompact_handle05_2f_3f_26_dasm(DASM_PARAMS); break; // illegal
505      case 0x27: size = arcompact_handle05_2f_3f_27_dasm(DASM_PARAMS); break; // illegal
506      case 0x28: size = arcompact_handle05_2f_3f_28_dasm(DASM_PARAMS); break; // illegal
507      case 0x29: size = arcompact_handle05_2f_3f_29_dasm(DASM_PARAMS); break; // illegal
508      case 0x2a: size = arcompact_handle05_2f_3f_2a_dasm(DASM_PARAMS); break; // illegal
509      case 0x2b: size = arcompact_handle05_2f_3f_2b_dasm(DASM_PARAMS); break; // illegal
510      case 0x2c: size = arcompact_handle05_2f_3f_2c_dasm(DASM_PARAMS); break; // illegal
511      case 0x2d: size = arcompact_handle05_2f_3f_2d_dasm(DASM_PARAMS); break; // illegal
512      case 0x2e: size = arcompact_handle05_2f_3f_2e_dasm(DASM_PARAMS); break; // illegal
513      case 0x2f: size = arcompact_handle05_2f_3f_2f_dasm(DASM_PARAMS); break; // illegal
514      case 0x30: size = arcompact_handle05_2f_3f_30_dasm(DASM_PARAMS); break; // illegal
515      case 0x31: size = arcompact_handle05_2f_3f_31_dasm(DASM_PARAMS); break; // illegal
516      case 0x32: size = arcompact_handle05_2f_3f_32_dasm(DASM_PARAMS); break; // illegal
517      case 0x33: size = arcompact_handle05_2f_3f_33_dasm(DASM_PARAMS); break; // illegal
518      case 0x34: size = arcompact_handle05_2f_3f_34_dasm(DASM_PARAMS); break; // illegal
519      case 0x35: size = arcompact_handle05_2f_3f_35_dasm(DASM_PARAMS); break; // illegal
520      case 0x36: size = arcompact_handle05_2f_3f_36_dasm(DASM_PARAMS); break; // illegal
521      case 0x37: size = arcompact_handle05_2f_3f_37_dasm(DASM_PARAMS); break; // illegal
522      case 0x38: size = arcompact_handle05_2f_3f_38_dasm(DASM_PARAMS); break; // illegal
523      case 0x39: size = arcompact_handle05_2f_3f_39_dasm(DASM_PARAMS); break; // illegal
524      case 0x3a: size = arcompact_handle05_2f_3f_3a_dasm(DASM_PARAMS); break; // illegal
525      case 0x3b: size = arcompact_handle05_2f_3f_3b_dasm(DASM_PARAMS); break; // illegal
526      case 0x3c: size = arcompact_handle05_2f_3f_3c_dasm(DASM_PARAMS); break; // illegal
527      case 0x3d: size = arcompact_handle05_2f_3f_3d_dasm(DASM_PARAMS); break; // illegal
528      case 0x3e: size = arcompact_handle05_2f_3f_3e_dasm(DASM_PARAMS); break; // illegal
529      case 0x3f: size = arcompact_handle05_2f_3f_3f_dasm(DASM_PARAMS); break; // illegal
530   }
531
532   return size;
533}
534
535
377536// this is an Extension ALU group, maybe optional on some CPUs?
378537int arcompact_handle05_dasm(DASM_OPS_32)
379538{
trunk/src/emu/cpu/arcompact/arcompactdasm_dispatch.h
r242435r242436
2727int arcompact_handle04_2f_3f_dasm(DASM_OPS_32);
2828int arcompact_handle05_dasm(DASM_OPS_32);
2929
30int arcompact_handle05_2f_dasm(DASM_OPS_32);
31int arcompact_handle05_2f_3f_dasm(DASM_OPS_32);
32
33
3034int arcompact_handle0c_dasm(DASM_OPS_16);
3135int arcompact_handle0d_dasm(DASM_OPS_16);
3236int arcompact_handle0e_dasm(DASM_OPS_16);
trunk/src/emu/cpu/arcompact/arcompactdasm_ops.c
r242435r242436
930930
931931
932932
933int arcompact_handle05_00_dasm(DASM_OPS_32)  { print("ASL a <- b asl c (%08x)", op); return 4;}
934int arcompact_handle05_01_dasm(DASM_OPS_32)  { print("LSR a <- b lsr c (%08x)", op); return 4;}
935int arcompact_handle05_02_dasm(DASM_OPS_32)  { print("ASR a <- b asr c (%08x)", op); return 4;}
936int arcompact_handle05_03_dasm(DASM_OPS_32)  { print("ROR a <- b ror c (%08x)", op); return 4;}
937int arcompact_handle05_04_dasm(DASM_OPS_32)  { print("MUL64 mulres <- b * c (%08x)", op); return 4;}
938int arcompact_handle05_05_dasm(DASM_OPS_32)  { print("MULU64 mulres <- b * c (%08x)", op); return 4;}
939int arcompact_handle05_06_dasm(DASM_OPS_32)  { print("ADDS a <- sat32 (b + c) (%08x)", op); return 4;}
940int arcompact_handle05_07_dasm(DASM_OPS_32)  { print("SUBS a <- sat32 (b + c) (%08x)", op); return 4;}
941int arcompact_handle05_08_dasm(DASM_OPS_32)  { print("DIVAW (%08x)", op); return 4;}
933int arcompact_handle05_00_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASL", 0,0); }
934int arcompact_handle05_01_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "LSR", 0,0); }
935int arcompact_handle05_02_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASR", 0,0); }
936int arcompact_handle05_03_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ROR", 0,0); }
937int arcompact_handle05_04_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "MUL64", 0,0); } // special
938int arcompact_handle05_05_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "MULU64", 0,0);} // special
939int arcompact_handle05_06_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ADDS", 0,0); }
940int arcompact_handle05_07_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "SUBS", 0,0); }
941int arcompact_handle05_08_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "DIVAW", 0,0); }
942942
943943
944944
945int arcompact_handle05_0a_dasm(DASM_OPS_32)  { print("ASLS a <- sat32 (b << c) (%08x)", op); return 4;}
946int arcompact_handle05_0b_dasm(DASM_OPS_32)  { print("ASRS a ,- sat32 (b >> c) (%08x)", op); return 4;}
945int arcompact_handle05_0a_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASLS", 0,0); }
946int arcompact_handle05_0b_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASRS", 0,0); }
947947
948int arcompact_handle05_28_dasm(DASM_OPS_32)  { print("ADDSDW (%08x)", op); return 4;}
949int arcompact_handle05_29_dasm(DASM_OPS_32)  { print("SUBSDW (%08x)", op); return 4;}
948int arcompact_handle05_28_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ADDSDW", 0,0); }
949int arcompact_handle05_29_dasm(DASM_OPS_32)  { return arcompact_handle04_helper_dasm(DASM_PARAMS, "SUBSDW", 0,0); }
950950
951951
952int arcompact_handle05_2f_dasm(DASM_OPS_32)  { print("SOP (another table) (%08x)", op); return 4;}
952//int arcompact_handle05_2f_dasm(DASM_OPS_32)  { print("SOP (another table) (%08x)", op); return 4;}
953953
954int arcompact_handle05_2f_00_dasm(DASM_OPS_32)  { print("SWAP (%08x)", op); return 4;}
955int arcompact_handle05_2f_01_dasm(DASM_OPS_32)  { print("NORM (%08x)", op); return 4;}
956int arcompact_handle05_2f_02_dasm(DASM_OPS_32)  { print("SAT16 (%08x)", op); return 4;}
957int arcompact_handle05_2f_03_dasm(DASM_OPS_32)  { print("RND16 (%08x)", op); return 4;}
958int arcompact_handle05_2f_04_dasm(DASM_OPS_32)  { print("ABSSW (%08x)", op); return 4;}
959int arcompact_handle05_2f_05_dasm(DASM_OPS_32)  { print("ABSS (%08x)", op); return 4;}
960int arcompact_handle05_2f_06_dasm(DASM_OPS_32)  { print("NEGSW (%08x)", op); return 4;}
961int arcompact_handle05_2f_07_dasm(DASM_OPS_32)  { print("NEGS (%08x)", op); return 4;}
962int arcompact_handle05_2f_08_dasm(DASM_OPS_32)  { print("NORMW (%08x)", op); return 4;}
963//int arcompact_handle05_2f_3f_dasm(DASM_OPS_32)  { print("ZOPs (another table) (%08x)", op); return 4;}
954964
955965
956966
r242435r242436
11451155int arcompact_handle0f_02_dasm(DASM_OPS_16)  { print("SUB_S b <- b - c (%08x)", op); return 2;}
11461156
11471157
1148int arcompact_handle0f_04_dasm(DASM_OPS_16)  { print("AND_S b <- b and c (%08x)", op); return 2;}
1149int arcompact_handle0f_05_dasm(DASM_OPS_16)  { print("OR_S b <- b or c (%08x)", op); return 2;}
1150int arcompact_handle0f_06_dasm(DASM_OPS_16)  { print("BIC_S b <- b & !c (%08x)", op); return 2;}
1151int arcompact_handle0f_07_dasm(DASM_OPS_16)  { print("XOR_S b <- b ^ c (%08x)", op); return 2;}
11521158
1159int arcompact_handle0f_0x_helper_dasm(DASM_OPS_16, const char* optext)
1160{
1161   int breg, creg;
11531162
1154int arcompact_handle0f_0b_dasm(DASM_OPS_16)  { print("TST_S b & c (%08x)", op); return 2;}
1155int arcompact_handle0f_0c_dasm(DASM_OPS_16)  { print("MUL64_S mulres <- b * c  (%08x)", op); return 2;}
1156int arcompact_handle0f_0d_dasm(DASM_OPS_16)  { print("SEXB_S b <- sexb(c) (%08x)", op); return 2;}
1157int arcompact_handle0f_0e_dasm(DASM_OPS_16)  { print("SEXW_S b <- sexw(c) (%08x)", op); return 2;}
1158int arcompact_handle0f_0f_dasm(DASM_OPS_16)  { print("EXTB_S b <- extb(c) (%08x)", op); return 2;}
1159int arcompact_handle0f_10_dasm(DASM_OPS_16)  { print("EXTW_S b <- extw(c) (%08x)", op); return 2;}
1160int arcompact_handle0f_11_dasm(DASM_OPS_16)  { print("ABS_S b <- abs(c)  (%08x)", op); return 2;}
1161int arcompact_handle0f_12_dasm(DASM_OPS_16)  { print("NOT_S b <- !(c) (%08x)", op); return 2;}
1162int arcompact_handle0f_13_dasm(DASM_OPS_16)  { print("NEG_S b <- neg(c)  (%08x)", op); return 2;}
1163int arcompact_handle0f_14_dasm(DASM_OPS_16)  { print("ADD1_S b <- b + (c << 1) (%08x)", op); return 2;}
1164int arcompact_handle0f_15_dasm(DASM_OPS_16)  { print("ADD2_S b <- b + (c << 2) (%08x)", op); return 2;}
1165int arcompact_handle0f_16_dasm(DASM_OPS_16)  { print("ADD3_S b <- b + (c << 3)  (%08x)", op); return 2;}
1163   COMMON16_GET_breg;
1164   COMMON16_GET_creg;
11661165
1166   REG_16BIT_RANGE(breg);
1167   REG_16BIT_RANGE(creg);
11671168
1168int arcompact_handle0f_18_dasm(DASM_OPS_16)  { print("ASL_S b <- b asl c (%08x)", op); return 2;}
1169int arcompact_handle0f_19_dasm(DASM_OPS_16)  { print("LSR_S b <- b lsr c (%08x)", op); return 2;}
1170int arcompact_handle0f_1a_dasm(DASM_OPS_16)  { print("ASR_S b <- b asr c (%08x)", op); return 2;}
1171int arcompact_handle0f_1b_dasm(DASM_OPS_16)  { print("ASL_S b <- c + c (%08x)", op); return 2;}
1172int arcompact_handle0f_1c_dasm(DASM_OPS_16)  { print("ASR_S b <- c asr 1 (%08x)", op); return 2;}
1173int arcompact_handle0f_1d_dasm(DASM_OPS_16)  { print("LSR_S b <- c lsr 1(%08x)", op); return 2;}
1174int arcompact_handle0f_1e_dasm(DASM_OPS_16)  { print("TRAP_S (%08x)", op); return 2;}
1175int arcompact_handle0f_1f_dasm(DASM_OPS_16)  { print("BRK_S (%08x)", op); return 2;}
11761169
1170   print("%s %s <- %s", optext, regnames[breg], regnames[creg]);
1171   return 2;
1172}
11771173
1174
1175int arcompact_handle0f_04_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "AND_S");  }
1176int arcompact_handle0f_05_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "OR_S");   }
1177int arcompact_handle0f_06_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "BIC_S");  }
1178int arcompact_handle0f_07_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "XOR_S");  }
1179int arcompact_handle0f_0b_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "TST_S");  }
1180int arcompact_handle0f_0d_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "SEXB_S"); }
1181int arcompact_handle0f_0e_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "SEXW_S"); }
1182int arcompact_handle0f_0f_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "EXTB_S"); }
1183int arcompact_handle0f_10_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "EXTW_S"); }
1184int arcompact_handle0f_11_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ABS_S");  }
1185int arcompact_handle0f_12_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "NOT_S");  }
1186int arcompact_handle0f_13_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "NEG_S");  }
1187int arcompact_handle0f_14_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ADD1_S"); }
1188int arcompact_handle0f_15_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ADD2_S"); }
1189int arcompact_handle0f_16_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ADD3_S"); }
1190int arcompact_handle0f_18_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASL_S");  }
1191int arcompact_handle0f_19_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "LSR_S");  }
1192int arcompact_handle0f_1a_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASR_S");  }
1193int arcompact_handle0f_1b_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASL1_S"); }
1194int arcompact_handle0f_1c_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASR1_S"); }
1195int arcompact_handle0f_1d_dasm(DASM_OPS_16)  { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "LSR1_S"); }
1196
1197int arcompact_handle0f_0c_dasm(DASM_OPS_16)  { print("MUL64_S mulres <- b * c  (%08x)", op); return 2;} // special
1198int arcompact_handle0f_1e_dasm(DASM_OPS_16)  { print("TRAP_S (%08x)", op); return 2;} // special
1199int arcompact_handle0f_1f_dasm(DASM_OPS_16)  { print("BRK_S (%08x)", op); return 2;} // special
1200
1201
11781202int arcompact_handle_ld_helper_dasm(DASM_OPS_16, const char* optext, int shift, int swap)
11791203{
11801204   int breg, creg, u;
r242435r242436
12311255}
12321256
12331257
1258int arcompact_handle_l7_0x_helper_dasm(DASM_OPS_16, const char* optext)
1259{
1260   int breg, u;
1261
1262   COMMON16_GET_breg;
1263   COMMON16_GET_u5;
1264
1265   REG_16BIT_RANGE(breg);
1266
1267   print("%s %s, 0x%02x", optext, regnames[breg], u);
1268
1269   return 2;
1270
1271}
1272
12341273int arcompact_handle17_00_dasm(DASM_OPS_16)
12351274{
1236   int size = 2;
1237   print("ASL_S b <- b asl u5 (%04x)",  op);
1238   return size;
1275   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "ASL_S");
12391276}
12401277
12411278int arcompact_handle17_01_dasm(DASM_OPS_16)
12421279{
1243   int size = 2;
1244   print("LSR_S b <- b lsr u5 (%04x)",  op);
1245   return size;
1280   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "LSR_S");
12461281}
12471282
12481283int arcompact_handle17_02_dasm(DASM_OPS_16)
12491284{
1250   int size = 2;
1251   print("ASR_S b <- b asr u5 (%04x)",  op);
1252   return size;
1285   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "ASR_S");
12531286}
12541287
12551288int arcompact_handle17_03_dasm(DASM_OPS_16)
12561289{
1257   int size = 2;
1258   print("SUB_S b <- b - u5 (%04x)",  op);
1259   return size;
1290   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "SUB_S");
12601291}
12611292
12621293int arcompact_handle17_04_dasm(DASM_OPS_16)
12631294{
1264   int size = 2;
1265   print("BSET_S b <- b | (1 << u5) (%04x)",  op);
1266   return size;
1295   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "BSET_S");
12671296}
12681297
12691298int arcompact_handle17_05_dasm(DASM_OPS_16)
12701299{
1271   int size = 2;
1272   print("BCLR_S b <- b & !(1 << u5) (%04x)",  op);
1273   return size;
1300   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "BCLR_S");
12741301}
12751302
12761303int arcompact_handle17_06_dasm(DASM_OPS_16)
12771304{
1278   int size = 2;
1279   print("BMSK_S (%04x)",  op);
1280   return size;
1305   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "BSMK_S");
12811306}
12821307
12831308int arcompact_handle17_07_dasm(DASM_OPS_16)
12841309{
1285   int size = 2;
1286   print("BTST_S (%04x)",  op);
1287   return size;
1310   return arcompact_handle_l7_0x_helper_dasm(DASM_PARAMS, "BTST_S");
12881311}
12891312
12901313
r242435r242436
15831606int arcompact_handle04_2f_3d_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3d> (%08x)", op); return 4;}
15841607int arcompact_handle04_2f_3e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3e> (%08x)", op); return 4;}
15851608
1609
1610
1611int arcompact_handle05_2f_09_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_09> (%08x)", op); return 4;}
1612int arcompact_handle05_2f_0a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_0a> (%08x)", op); return 4;}
1613int arcompact_handle05_2f_0b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_0b> (%08x)", op); return 4;}
1614int arcompact_handle05_2f_0c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_0c> (%08x)", op); return 4;}
1615int arcompact_handle05_2f_0d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_0d> (%08x)", op); return 4;}
1616int arcompact_handle05_2f_0e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_0e> (%08x)", op); return 4;}
1617int arcompact_handle05_2f_0f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_0f> (%08x)", op); return 4;}
1618int arcompact_handle05_2f_10_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_10> (%08x)", op); return 4;}
1619int arcompact_handle05_2f_11_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_11> (%08x)", op); return 4;}
1620int arcompact_handle05_2f_12_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_12> (%08x)", op); return 4;}
1621int arcompact_handle05_2f_13_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_13> (%08x)", op); return 4;}
1622int arcompact_handle05_2f_14_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_14> (%08x)", op); return 4;}
1623int arcompact_handle05_2f_15_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_15> (%08x)", op); return 4;}
1624int arcompact_handle05_2f_16_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_16> (%08x)", op); return 4;}
1625int arcompact_handle05_2f_17_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_17> (%08x)", op); return 4;}
1626int arcompact_handle05_2f_18_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_18> (%08x)", op); return 4;}
1627int arcompact_handle05_2f_19_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_19> (%08x)", op); return 4;}
1628int arcompact_handle05_2f_1a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_1a> (%08x)", op); return 4;}
1629int arcompact_handle05_2f_1b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_1b> (%08x)", op); return 4;}
1630int arcompact_handle05_2f_1c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_1c> (%08x)", op); return 4;}
1631int arcompact_handle05_2f_1d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_1d> (%08x)", op); return 4;}
1632int arcompact_handle05_2f_1e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_1e> (%08x)", op); return 4;}
1633int arcompact_handle05_2f_1f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_1f> (%08x)", op); return 4;}
1634int arcompact_handle05_2f_20_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_20> (%08x)", op); return 4;}
1635int arcompact_handle05_2f_21_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_21> (%08x)", op); return 4;}
1636int arcompact_handle05_2f_22_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_22> (%08x)", op); return 4;}
1637int arcompact_handle05_2f_23_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_23> (%08x)", op); return 4;}
1638int arcompact_handle05_2f_24_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_24> (%08x)", op); return 4;}
1639int arcompact_handle05_2f_25_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_25> (%08x)", op); return 4;}
1640int arcompact_handle05_2f_26_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_26> (%08x)", op); return 4;}
1641int arcompact_handle05_2f_27_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_27> (%08x)", op); return 4;}
1642int arcompact_handle05_2f_28_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_28> (%08x)", op); return 4;}
1643int arcompact_handle05_2f_29_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_29> (%08x)", op); return 4;}
1644int arcompact_handle05_2f_2a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_2a> (%08x)", op); return 4;}
1645int arcompact_handle05_2f_2b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_2b> (%08x)", op); return 4;}
1646int arcompact_handle05_2f_2c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_2c> (%08x)", op); return 4;}
1647int arcompact_handle05_2f_2d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_2d> (%08x)", op); return 4;}
1648int arcompact_handle05_2f_2e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_2e> (%08x)", op); return 4;}
1649int arcompact_handle05_2f_2f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_2f> (%08x)", op); return 4;}
1650int arcompact_handle05_2f_30_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_30> (%08x)", op); return 4;}
1651int arcompact_handle05_2f_31_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_31> (%08x)", op); return 4;}
1652int arcompact_handle05_2f_32_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_32> (%08x)", op); return 4;}
1653int arcompact_handle05_2f_33_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_33> (%08x)", op); return 4;}
1654int arcompact_handle05_2f_34_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_34> (%08x)", op); return 4;}
1655int arcompact_handle05_2f_35_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_35> (%08x)", op); return 4;}
1656int arcompact_handle05_2f_36_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_36> (%08x)", op); return 4;}
1657int arcompact_handle05_2f_37_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_37> (%08x)", op); return 4;}
1658int arcompact_handle05_2f_38_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_38> (%08x)", op); return 4;}
1659int arcompact_handle05_2f_39_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_39> (%08x)", op); return 4;}
1660int arcompact_handle05_2f_3a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3a> (%08x)", op); return 4;}
1661int arcompact_handle05_2f_3b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3b> (%08x)", op); return 4;}
1662int arcompact_handle05_2f_3c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3c> (%08x)", op); return 4;}
1663int arcompact_handle05_2f_3d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3d> (%08x)", op); return 4;}
1664int arcompact_handle05_2f_3e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3e> (%08x)", op); return 4;}
1665
1666
15861667int arcompact_handle04_2f_3f_00_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3f_00> (%08x)", op); return 4;}
15871668int arcompact_handle04_2f_3f_06_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3f_06> (%08x)", op); return 4;}
15881669int arcompact_handle04_2f_3f_07_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3f_07> (%08x)", op); return 4;}
r242435r242436
16431724int arcompact_handle04_2f_3f_3e_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3f_3e> (%08x)", op); return 4;}
16441725int arcompact_handle04_2f_3f_3f_dasm(DASM_OPS_32)  { print("<illegal 0x04_2f_3f_3f> (%08x)", op); return 4;}
16451726
1727int arcompact_handle05_2f_3f_00_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_00> (%08x)", op); return 4;}
1728int arcompact_handle05_2f_3f_01_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_01> (%08x)", op); return 4;}
1729int arcompact_handle05_2f_3f_02_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_02> (%08x)", op); return 4;}
1730int arcompact_handle05_2f_3f_03_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_03> (%08x)", op); return 4;}
1731int arcompact_handle05_2f_3f_04_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_04> (%08x)", op); return 4;}
1732int arcompact_handle05_2f_3f_05_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_05> (%08x)", op); return 4;}
1733int arcompact_handle05_2f_3f_06_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_06> (%08x)", op); return 4;}
1734int arcompact_handle05_2f_3f_07_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_07> (%08x)", op); return 4;}
1735int arcompact_handle05_2f_3f_08_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_08> (%08x)", op); return 4;}
1736int arcompact_handle05_2f_3f_09_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_09> (%08x)", op); return 4;}
1737int arcompact_handle05_2f_3f_0a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_0a> (%08x)", op); return 4;}
1738int arcompact_handle05_2f_3f_0b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_0b> (%08x)", op); return 4;}
1739int arcompact_handle05_2f_3f_0c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_0c> (%08x)", op); return 4;}
1740int arcompact_handle05_2f_3f_0d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_0d> (%08x)", op); return 4;}
1741int arcompact_handle05_2f_3f_0e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_0e> (%08x)", op); return 4;}
1742int arcompact_handle05_2f_3f_0f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_0f> (%08x)", op); return 4;}
1743int arcompact_handle05_2f_3f_10_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_10> (%08x)", op); return 4;}
1744int arcompact_handle05_2f_3f_11_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_11> (%08x)", op); return 4;}
1745int arcompact_handle05_2f_3f_12_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_12> (%08x)", op); return 4;}
1746int arcompact_handle05_2f_3f_13_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_13> (%08x)", op); return 4;}
1747int arcompact_handle05_2f_3f_14_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_14> (%08x)", op); return 4;}
1748int arcompact_handle05_2f_3f_15_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_15> (%08x)", op); return 4;}
1749int arcompact_handle05_2f_3f_16_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_16> (%08x)", op); return 4;}
1750int arcompact_handle05_2f_3f_17_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_17> (%08x)", op); return 4;}
1751int arcompact_handle05_2f_3f_18_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_18> (%08x)", op); return 4;}
1752int arcompact_handle05_2f_3f_19_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_19> (%08x)", op); return 4;}
1753int arcompact_handle05_2f_3f_1a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_1a> (%08x)", op); return 4;}
1754int arcompact_handle05_2f_3f_1b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_1b> (%08x)", op); return 4;}
1755int arcompact_handle05_2f_3f_1c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_1c> (%08x)", op); return 4;}
1756int arcompact_handle05_2f_3f_1d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_1d> (%08x)", op); return 4;}
1757int arcompact_handle05_2f_3f_1e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_1e> (%08x)", op); return 4;}
1758int arcompact_handle05_2f_3f_1f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_1f> (%08x)", op); return 4;}
1759int arcompact_handle05_2f_3f_20_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_20> (%08x)", op); return 4;}
1760int arcompact_handle05_2f_3f_21_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_21> (%08x)", op); return 4;}
1761int arcompact_handle05_2f_3f_22_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_22> (%08x)", op); return 4;}
1762int arcompact_handle05_2f_3f_23_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_23> (%08x)", op); return 4;}
1763int arcompact_handle05_2f_3f_24_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_24> (%08x)", op); return 4;}
1764int arcompact_handle05_2f_3f_25_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_25> (%08x)", op); return 4;}
1765int arcompact_handle05_2f_3f_26_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_26> (%08x)", op); return 4;}
1766int arcompact_handle05_2f_3f_27_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_27> (%08x)", op); return 4;}
1767int arcompact_handle05_2f_3f_28_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_28> (%08x)", op); return 4;}
1768int arcompact_handle05_2f_3f_29_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_29> (%08x)", op); return 4;}
1769int arcompact_handle05_2f_3f_2a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_2a> (%08x)", op); return 4;}
1770int arcompact_handle05_2f_3f_2b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_2b> (%08x)", op); return 4;}
1771int arcompact_handle05_2f_3f_2c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_2c> (%08x)", op); return 4;}
1772int arcompact_handle05_2f_3f_2d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_2d> (%08x)", op); return 4;}
1773int arcompact_handle05_2f_3f_2e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_2e> (%08x)", op); return 4;}
1774int arcompact_handle05_2f_3f_2f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_2f> (%08x)", op); return 4;}
1775int arcompact_handle05_2f_3f_30_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_30> (%08x)", op); return 4;}
1776int arcompact_handle05_2f_3f_31_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_31> (%08x)", op); return 4;}
1777int arcompact_handle05_2f_3f_32_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_32> (%08x)", op); return 4;}
1778int arcompact_handle05_2f_3f_33_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_33> (%08x)", op); return 4;}
1779int arcompact_handle05_2f_3f_34_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_34> (%08x)", op); return 4;}
1780int arcompact_handle05_2f_3f_35_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_35> (%08x)", op); return 4;}
1781int arcompact_handle05_2f_3f_36_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_36> (%08x)", op); return 4;}
1782int arcompact_handle05_2f_3f_37_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_37> (%08x)", op); return 4;}
1783int arcompact_handle05_2f_3f_38_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_38> (%08x)", op); return 4;}
1784int arcompact_handle05_2f_3f_39_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_39> (%08x)", op); return 4;}
1785int arcompact_handle05_2f_3f_3a_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_3a> (%08x)", op); return 4;}
1786int arcompact_handle05_2f_3f_3b_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_3b> (%08x)", op); return 4;}
1787int arcompact_handle05_2f_3f_3c_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_3c> (%08x)", op); return 4;}
1788int arcompact_handle05_2f_3f_3d_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_3d> (%08x)", op); return 4;}
1789int arcompact_handle05_2f_3f_3e_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_3e> (%08x)", op); return 4;}
1790int arcompact_handle05_2f_3f_3f_dasm(DASM_OPS_32)  { print("<illegal 0x05_2f_3f_3f> (%08x)", op); return 4;}
16461791
16471792
16481793
1794
16491795int arcompact_handle04_38_dasm(DASM_OPS_32)  { print("<illegal 0x04_38> (%08x)", op); return 4;}
16501796int arcompact_handle04_39_dasm(DASM_OPS_32)  { print("<illegal 0x04_39> (%08x)", op); return 4;}
16511797int arcompact_handle04_3a_dasm(DASM_OPS_32)  { print("<illegal 0x04_3a> (%08x)", op); return 4;}
trunk/src/emu/cpu/arcompact/arcompactdasm_ops.h
r242435r242436
115115int arcompact_handle05_0b_dasm(DASM_OPS_32);
116116int arcompact_handle05_28_dasm(DASM_OPS_32);
117117int arcompact_handle05_29_dasm(DASM_OPS_32);
118int arcompact_handle05_2f_dasm(DASM_OPS_32);
118//int arcompact_handle05_2f_dasm(DASM_OPS_32);
119119int arcompact_handle06_dasm(DASM_OPS_32);
120120int arcompact_handle07_dasm(DASM_OPS_32);
121121int arcompact_handle08_dasm(DASM_OPS_32);
r242435r242436
368368int arcompact_handle04_2f_3f_3e_dasm(DASM_OPS_32); //("<illegal 0x04_2f_3f_3e> (%08x)", op); return 4;}
369369int arcompact_handle04_2f_3f_3f_dasm(DASM_OPS_32); //("<illegal 0x04_2f_3f_3f> (%08x)", op); return 4;}
370370
371int arcompact_handle05_2f_00_dasm(DASM_OPS_32);
372int arcompact_handle05_2f_01_dasm(DASM_OPS_32);
373int arcompact_handle05_2f_02_dasm(DASM_OPS_32);
374int arcompact_handle05_2f_03_dasm(DASM_OPS_32);
375int arcompact_handle05_2f_04_dasm(DASM_OPS_32);
376int arcompact_handle05_2f_05_dasm(DASM_OPS_32);
377int arcompact_handle05_2f_06_dasm(DASM_OPS_32);
378int arcompact_handle05_2f_07_dasm(DASM_OPS_32);
379int arcompact_handle05_2f_08_dasm(DASM_OPS_32);
380int arcompact_handle05_2f_09_dasm(DASM_OPS_32);
381int arcompact_handle05_2f_0a_dasm(DASM_OPS_32);
382int arcompact_handle05_2f_0b_dasm(DASM_OPS_32);
383int arcompact_handle05_2f_0c_dasm(DASM_OPS_32);
384int arcompact_handle05_2f_0d_dasm(DASM_OPS_32);
385int arcompact_handle05_2f_0e_dasm(DASM_OPS_32);
386int arcompact_handle05_2f_0f_dasm(DASM_OPS_32);
387int arcompact_handle05_2f_10_dasm(DASM_OPS_32);
388int arcompact_handle05_2f_11_dasm(DASM_OPS_32);
389int arcompact_handle05_2f_12_dasm(DASM_OPS_32);
390int arcompact_handle05_2f_13_dasm(DASM_OPS_32);
391int arcompact_handle05_2f_14_dasm(DASM_OPS_32);
392int arcompact_handle05_2f_15_dasm(DASM_OPS_32);
393int arcompact_handle05_2f_16_dasm(DASM_OPS_32);
394int arcompact_handle05_2f_17_dasm(DASM_OPS_32);
395int arcompact_handle05_2f_18_dasm(DASM_OPS_32);
396int arcompact_handle05_2f_19_dasm(DASM_OPS_32);
397int arcompact_handle05_2f_1a_dasm(DASM_OPS_32);
398int arcompact_handle05_2f_1b_dasm(DASM_OPS_32);
399int arcompact_handle05_2f_1c_dasm(DASM_OPS_32);
400int arcompact_handle05_2f_1d_dasm(DASM_OPS_32);
401int arcompact_handle05_2f_1e_dasm(DASM_OPS_32);
402int arcompact_handle05_2f_1f_dasm(DASM_OPS_32);
403int arcompact_handle05_2f_20_dasm(DASM_OPS_32);
404int arcompact_handle05_2f_21_dasm(DASM_OPS_32);
405int arcompact_handle05_2f_22_dasm(DASM_OPS_32);
406int arcompact_handle05_2f_23_dasm(DASM_OPS_32);
407int arcompact_handle05_2f_24_dasm(DASM_OPS_32);
408int arcompact_handle05_2f_25_dasm(DASM_OPS_32);
409int arcompact_handle05_2f_26_dasm(DASM_OPS_32);
410int arcompact_handle05_2f_27_dasm(DASM_OPS_32);
411int arcompact_handle05_2f_28_dasm(DASM_OPS_32);
412int arcompact_handle05_2f_29_dasm(DASM_OPS_32);
413int arcompact_handle05_2f_2a_dasm(DASM_OPS_32);
414int arcompact_handle05_2f_2b_dasm(DASM_OPS_32);
415int arcompact_handle05_2f_2c_dasm(DASM_OPS_32);
416int arcompact_handle05_2f_2d_dasm(DASM_OPS_32);
417int arcompact_handle05_2f_2e_dasm(DASM_OPS_32);
418int arcompact_handle05_2f_2f_dasm(DASM_OPS_32);
419int arcompact_handle05_2f_30_dasm(DASM_OPS_32);
420int arcompact_handle05_2f_31_dasm(DASM_OPS_32);
421int arcompact_handle05_2f_32_dasm(DASM_OPS_32);
422int arcompact_handle05_2f_33_dasm(DASM_OPS_32);
423int arcompact_handle05_2f_34_dasm(DASM_OPS_32);
424int arcompact_handle05_2f_35_dasm(DASM_OPS_32);
425int arcompact_handle05_2f_36_dasm(DASM_OPS_32);
426int arcompact_handle05_2f_37_dasm(DASM_OPS_32);
427int arcompact_handle05_2f_38_dasm(DASM_OPS_32);
428int arcompact_handle05_2f_39_dasm(DASM_OPS_32);
429int arcompact_handle05_2f_3a_dasm(DASM_OPS_32);
430int arcompact_handle05_2f_3b_dasm(DASM_OPS_32);
431int arcompact_handle05_2f_3c_dasm(DASM_OPS_32);
432int arcompact_handle05_2f_3d_dasm(DASM_OPS_32);
433int arcompact_handle05_2f_3e_dasm(DASM_OPS_32);
434//int arcompact_handle05_2f_3f_dasm(DASM_OPS_32);
435
436int arcompact_handle05_2f_3f_00_dasm(DASM_OPS_32);
437int arcompact_handle05_2f_3f_01_dasm(DASM_OPS_32);
438int arcompact_handle05_2f_3f_02_dasm(DASM_OPS_32);
439int arcompact_handle05_2f_3f_03_dasm(DASM_OPS_32);
440int arcompact_handle05_2f_3f_04_dasm(DASM_OPS_32);
441int arcompact_handle05_2f_3f_05_dasm(DASM_OPS_32);
442int arcompact_handle05_2f_3f_06_dasm(DASM_OPS_32);
443int arcompact_handle05_2f_3f_07_dasm(DASM_OPS_32);
444int arcompact_handle05_2f_3f_08_dasm(DASM_OPS_32);
445int arcompact_handle05_2f_3f_09_dasm(DASM_OPS_32);
446int arcompact_handle05_2f_3f_0a_dasm(DASM_OPS_32);
447int arcompact_handle05_2f_3f_0b_dasm(DASM_OPS_32);
448int arcompact_handle05_2f_3f_0c_dasm(DASM_OPS_32);
449int arcompact_handle05_2f_3f_0d_dasm(DASM_OPS_32);
450int arcompact_handle05_2f_3f_0e_dasm(DASM_OPS_32);
451int arcompact_handle05_2f_3f_0f_dasm(DASM_OPS_32);
452int arcompact_handle05_2f_3f_10_dasm(DASM_OPS_32);
453int arcompact_handle05_2f_3f_11_dasm(DASM_OPS_32);
454int arcompact_handle05_2f_3f_12_dasm(DASM_OPS_32);
455int arcompact_handle05_2f_3f_13_dasm(DASM_OPS_32);
456int arcompact_handle05_2f_3f_14_dasm(DASM_OPS_32);
457int arcompact_handle05_2f_3f_15_dasm(DASM_OPS_32);
458int arcompact_handle05_2f_3f_16_dasm(DASM_OPS_32);
459int arcompact_handle05_2f_3f_17_dasm(DASM_OPS_32);
460int arcompact_handle05_2f_3f_18_dasm(DASM_OPS_32);
461int arcompact_handle05_2f_3f_19_dasm(DASM_OPS_32);
462int arcompact_handle05_2f_3f_1a_dasm(DASM_OPS_32);
463int arcompact_handle05_2f_3f_1b_dasm(DASM_OPS_32);
464int arcompact_handle05_2f_3f_1c_dasm(DASM_OPS_32);
465int arcompact_handle05_2f_3f_1d_dasm(DASM_OPS_32);
466int arcompact_handle05_2f_3f_1e_dasm(DASM_OPS_32);
467int arcompact_handle05_2f_3f_1f_dasm(DASM_OPS_32);
468int arcompact_handle05_2f_3f_20_dasm(DASM_OPS_32);
469int arcompact_handle05_2f_3f_21_dasm(DASM_OPS_32);
470int arcompact_handle05_2f_3f_22_dasm(DASM_OPS_32);
471int arcompact_handle05_2f_3f_23_dasm(DASM_OPS_32);
472int arcompact_handle05_2f_3f_24_dasm(DASM_OPS_32);
473int arcompact_handle05_2f_3f_25_dasm(DASM_OPS_32);
474int arcompact_handle05_2f_3f_26_dasm(DASM_OPS_32);
475int arcompact_handle05_2f_3f_27_dasm(DASM_OPS_32);
476int arcompact_handle05_2f_3f_28_dasm(DASM_OPS_32);
477int arcompact_handle05_2f_3f_29_dasm(DASM_OPS_32);
478int arcompact_handle05_2f_3f_2a_dasm(DASM_OPS_32);
479int arcompact_handle05_2f_3f_2b_dasm(DASM_OPS_32);
480int arcompact_handle05_2f_3f_2c_dasm(DASM_OPS_32);
481int arcompact_handle05_2f_3f_2d_dasm(DASM_OPS_32);
482int arcompact_handle05_2f_3f_2e_dasm(DASM_OPS_32);
483int arcompact_handle05_2f_3f_2f_dasm(DASM_OPS_32);
484int arcompact_handle05_2f_3f_30_dasm(DASM_OPS_32);
485int arcompact_handle05_2f_3f_31_dasm(DASM_OPS_32);
486int arcompact_handle05_2f_3f_32_dasm(DASM_OPS_32);
487int arcompact_handle05_2f_3f_33_dasm(DASM_OPS_32);
488int arcompact_handle05_2f_3f_34_dasm(DASM_OPS_32);
489int arcompact_handle05_2f_3f_35_dasm(DASM_OPS_32);
490int arcompact_handle05_2f_3f_36_dasm(DASM_OPS_32);
491int arcompact_handle05_2f_3f_37_dasm(DASM_OPS_32);
492int arcompact_handle05_2f_3f_38_dasm(DASM_OPS_32);
493int arcompact_handle05_2f_3f_39_dasm(DASM_OPS_32);
494int arcompact_handle05_2f_3f_3a_dasm(DASM_OPS_32);
495int arcompact_handle05_2f_3f_3b_dasm(DASM_OPS_32);
496int arcompact_handle05_2f_3f_3c_dasm(DASM_OPS_32);
497int arcompact_handle05_2f_3f_3d_dasm(DASM_OPS_32);
498int arcompact_handle05_2f_3f_3e_dasm(DASM_OPS_32);
499int arcompact_handle05_2f_3f_3f_dasm(DASM_OPS_32);
500
501
371502int arcompact_handle04_38_dasm(DASM_OPS_32); //("<illegal 0x04_38> (%08x)", op); return 4;}
372503int arcompact_handle04_39_dasm(DASM_OPS_32); //("<illegal 0x04_39> (%08x)", op); return 4;}
373504int arcompact_handle04_3a_dasm(DASM_OPS_32); //("<illegal 0x04_3a> (%08x)", op); return 4;}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team