trunk/src/emu/cpu/arcompact/arcompactdasm_dispatch.c
| r242435 | r242436 | |
| 295 | 295 | return size; |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | |
| 299 | int 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 | |
| 298 | 376 | int arcompact_handle04_2f_3f_dasm(DASM_OPS_32) |
| 299 | 377 | { |
| 300 | 378 | int size = 4; |
| r242435 | r242436 | |
| 374 | 452 | return size; |
| 375 | 453 | } |
| 376 | 454 | |
| 455 | |
| 456 | int 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 | |
| 377 | 536 | // this is an Extension ALU group, maybe optional on some CPUs? |
| 378 | 537 | int arcompact_handle05_dasm(DASM_OPS_32) |
| 379 | 538 | { |
trunk/src/emu/cpu/arcompact/arcompactdasm_ops.c
| r242435 | r242436 | |
| 930 | 930 | |
| 931 | 931 | |
| 932 | 932 | |
| 933 | | int arcompact_handle05_00_dasm(DASM_OPS_32) { print("ASL a <- b asl c (%08x)", op); return 4;} |
| 934 | | int arcompact_handle05_01_dasm(DASM_OPS_32) { print("LSR a <- b lsr c (%08x)", op); return 4;} |
| 935 | | int arcompact_handle05_02_dasm(DASM_OPS_32) { print("ASR a <- b asr c (%08x)", op); return 4;} |
| 936 | | int arcompact_handle05_03_dasm(DASM_OPS_32) { print("ROR a <- b ror c (%08x)", op); return 4;} |
| 937 | | int arcompact_handle05_04_dasm(DASM_OPS_32) { print("MUL64 mulres <- b * c (%08x)", op); return 4;} |
| 938 | | int arcompact_handle05_05_dasm(DASM_OPS_32) { print("MULU64 mulres <- b * c (%08x)", op); return 4;} |
| 939 | | int arcompact_handle05_06_dasm(DASM_OPS_32) { print("ADDS a <- sat32 (b + c) (%08x)", op); return 4;} |
| 940 | | int arcompact_handle05_07_dasm(DASM_OPS_32) { print("SUBS a <- sat32 (b + c) (%08x)", op); return 4;} |
| 941 | | int arcompact_handle05_08_dasm(DASM_OPS_32) { print("DIVAW (%08x)", op); return 4;} |
| 933 | int arcompact_handle05_00_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASL", 0,0); } |
| 934 | int arcompact_handle05_01_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "LSR", 0,0); } |
| 935 | int arcompact_handle05_02_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASR", 0,0); } |
| 936 | int arcompact_handle05_03_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ROR", 0,0); } |
| 937 | int arcompact_handle05_04_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "MUL64", 0,0); } // special |
| 938 | int arcompact_handle05_05_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "MULU64", 0,0);} // special |
| 939 | int arcompact_handle05_06_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ADDS", 0,0); } |
| 940 | int arcompact_handle05_07_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "SUBS", 0,0); } |
| 941 | int arcompact_handle05_08_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "DIVAW", 0,0); } |
| 942 | 942 | |
| 943 | 943 | |
| 944 | 944 | |
| 945 | | int arcompact_handle05_0a_dasm(DASM_OPS_32) { print("ASLS a <- sat32 (b << c) (%08x)", op); return 4;} |
| 946 | | int arcompact_handle05_0b_dasm(DASM_OPS_32) { print("ASRS a ,- sat32 (b >> c) (%08x)", op); return 4;} |
| 945 | int arcompact_handle05_0a_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASLS", 0,0); } |
| 946 | int arcompact_handle05_0b_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ASRS", 0,0); } |
| 947 | 947 | |
| 948 | | int arcompact_handle05_28_dasm(DASM_OPS_32) { print("ADDSDW (%08x)", op); return 4;} |
| 949 | | int arcompact_handle05_29_dasm(DASM_OPS_32) { print("SUBSDW (%08x)", op); return 4;} |
| 948 | int arcompact_handle05_28_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "ADDSDW", 0,0); } |
| 949 | int arcompact_handle05_29_dasm(DASM_OPS_32) { return arcompact_handle04_helper_dasm(DASM_PARAMS, "SUBSDW", 0,0); } |
| 950 | 950 | |
| 951 | 951 | |
| 952 | | int 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;} |
| 953 | 953 | |
| 954 | int arcompact_handle05_2f_00_dasm(DASM_OPS_32) { print("SWAP (%08x)", op); return 4;} |
| 955 | int arcompact_handle05_2f_01_dasm(DASM_OPS_32) { print("NORM (%08x)", op); return 4;} |
| 956 | int arcompact_handle05_2f_02_dasm(DASM_OPS_32) { print("SAT16 (%08x)", op); return 4;} |
| 957 | int arcompact_handle05_2f_03_dasm(DASM_OPS_32) { print("RND16 (%08x)", op); return 4;} |
| 958 | int arcompact_handle05_2f_04_dasm(DASM_OPS_32) { print("ABSSW (%08x)", op); return 4;} |
| 959 | int arcompact_handle05_2f_05_dasm(DASM_OPS_32) { print("ABSS (%08x)", op); return 4;} |
| 960 | int arcompact_handle05_2f_06_dasm(DASM_OPS_32) { print("NEGSW (%08x)", op); return 4;} |
| 961 | int arcompact_handle05_2f_07_dasm(DASM_OPS_32) { print("NEGS (%08x)", op); return 4;} |
| 962 | int 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;} |
| 954 | 964 | |
| 955 | 965 | |
| 956 | 966 | |
| r242435 | r242436 | |
| 1145 | 1155 | int arcompact_handle0f_02_dasm(DASM_OPS_16) { print("SUB_S b <- b - c (%08x)", op); return 2;} |
| 1146 | 1156 | |
| 1147 | 1157 | |
| 1148 | | int arcompact_handle0f_04_dasm(DASM_OPS_16) { print("AND_S b <- b and c (%08x)", op); return 2;} |
| 1149 | | int arcompact_handle0f_05_dasm(DASM_OPS_16) { print("OR_S b <- b or c (%08x)", op); return 2;} |
| 1150 | | int arcompact_handle0f_06_dasm(DASM_OPS_16) { print("BIC_S b <- b & !c (%08x)", op); return 2;} |
| 1151 | | int arcompact_handle0f_07_dasm(DASM_OPS_16) { print("XOR_S b <- b ^ c (%08x)", op); return 2;} |
| 1152 | 1158 | |
| 1159 | int arcompact_handle0f_0x_helper_dasm(DASM_OPS_16, const char* optext) |
| 1160 | { |
| 1161 | int breg, creg; |
| 1153 | 1162 | |
| 1154 | | int arcompact_handle0f_0b_dasm(DASM_OPS_16) { print("TST_S b & c (%08x)", op); return 2;} |
| 1155 | | int arcompact_handle0f_0c_dasm(DASM_OPS_16) { print("MUL64_S mulres <- b * c (%08x)", op); return 2;} |
| 1156 | | int arcompact_handle0f_0d_dasm(DASM_OPS_16) { print("SEXB_S b <- sexb(c) (%08x)", op); return 2;} |
| 1157 | | int arcompact_handle0f_0e_dasm(DASM_OPS_16) { print("SEXW_S b <- sexw(c) (%08x)", op); return 2;} |
| 1158 | | int arcompact_handle0f_0f_dasm(DASM_OPS_16) { print("EXTB_S b <- extb(c) (%08x)", op); return 2;} |
| 1159 | | int arcompact_handle0f_10_dasm(DASM_OPS_16) { print("EXTW_S b <- extw(c) (%08x)", op); return 2;} |
| 1160 | | int arcompact_handle0f_11_dasm(DASM_OPS_16) { print("ABS_S b <- abs(c) (%08x)", op); return 2;} |
| 1161 | | int arcompact_handle0f_12_dasm(DASM_OPS_16) { print("NOT_S b <- !(c) (%08x)", op); return 2;} |
| 1162 | | int arcompact_handle0f_13_dasm(DASM_OPS_16) { print("NEG_S b <- neg(c) (%08x)", op); return 2;} |
| 1163 | | int arcompact_handle0f_14_dasm(DASM_OPS_16) { print("ADD1_S b <- b + (c << 1) (%08x)", op); return 2;} |
| 1164 | | int arcompact_handle0f_15_dasm(DASM_OPS_16) { print("ADD2_S b <- b + (c << 2) (%08x)", op); return 2;} |
| 1165 | | int 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; |
| 1166 | 1165 | |
| 1166 | REG_16BIT_RANGE(breg); |
| 1167 | REG_16BIT_RANGE(creg); |
| 1167 | 1168 | |
| 1168 | | int arcompact_handle0f_18_dasm(DASM_OPS_16) { print("ASL_S b <- b asl c (%08x)", op); return 2;} |
| 1169 | | int arcompact_handle0f_19_dasm(DASM_OPS_16) { print("LSR_S b <- b lsr c (%08x)", op); return 2;} |
| 1170 | | int arcompact_handle0f_1a_dasm(DASM_OPS_16) { print("ASR_S b <- b asr c (%08x)", op); return 2;} |
| 1171 | | int arcompact_handle0f_1b_dasm(DASM_OPS_16) { print("ASL_S b <- c + c (%08x)", op); return 2;} |
| 1172 | | int arcompact_handle0f_1c_dasm(DASM_OPS_16) { print("ASR_S b <- c asr 1 (%08x)", op); return 2;} |
| 1173 | | int arcompact_handle0f_1d_dasm(DASM_OPS_16) { print("LSR_S b <- c lsr 1(%08x)", op); return 2;} |
| 1174 | | int arcompact_handle0f_1e_dasm(DASM_OPS_16) { print("TRAP_S (%08x)", op); return 2;} |
| 1175 | | int arcompact_handle0f_1f_dasm(DASM_OPS_16) { print("BRK_S (%08x)", op); return 2;} |
| 1176 | 1169 | |
| 1170 | print("%s %s <- %s", optext, regnames[breg], regnames[creg]); |
| 1171 | return 2; |
| 1172 | } |
| 1177 | 1173 | |
| 1174 | |
| 1175 | int arcompact_handle0f_04_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "AND_S"); } |
| 1176 | int arcompact_handle0f_05_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "OR_S"); } |
| 1177 | int arcompact_handle0f_06_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "BIC_S"); } |
| 1178 | int arcompact_handle0f_07_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "XOR_S"); } |
| 1179 | int arcompact_handle0f_0b_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "TST_S"); } |
| 1180 | int arcompact_handle0f_0d_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "SEXB_S"); } |
| 1181 | int arcompact_handle0f_0e_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "SEXW_S"); } |
| 1182 | int arcompact_handle0f_0f_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "EXTB_S"); } |
| 1183 | int arcompact_handle0f_10_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "EXTW_S"); } |
| 1184 | int arcompact_handle0f_11_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ABS_S"); } |
| 1185 | int arcompact_handle0f_12_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "NOT_S"); } |
| 1186 | int arcompact_handle0f_13_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "NEG_S"); } |
| 1187 | int arcompact_handle0f_14_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ADD1_S"); } |
| 1188 | int arcompact_handle0f_15_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ADD2_S"); } |
| 1189 | int arcompact_handle0f_16_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ADD3_S"); } |
| 1190 | int arcompact_handle0f_18_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASL_S"); } |
| 1191 | int arcompact_handle0f_19_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "LSR_S"); } |
| 1192 | int arcompact_handle0f_1a_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASR_S"); } |
| 1193 | int arcompact_handle0f_1b_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASL1_S"); } |
| 1194 | int arcompact_handle0f_1c_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "ASR1_S"); } |
| 1195 | int arcompact_handle0f_1d_dasm(DASM_OPS_16) { return arcompact_handle0f_0x_helper_dasm(DASM_PARAMS, "LSR1_S"); } |
| 1196 | |
| 1197 | int arcompact_handle0f_0c_dasm(DASM_OPS_16) { print("MUL64_S mulres <- b * c (%08x)", op); return 2;} // special |
| 1198 | int arcompact_handle0f_1e_dasm(DASM_OPS_16) { print("TRAP_S (%08x)", op); return 2;} // special |
| 1199 | int arcompact_handle0f_1f_dasm(DASM_OPS_16) { print("BRK_S (%08x)", op); return 2;} // special |
| 1200 | |
| 1201 | |
| 1178 | 1202 | int arcompact_handle_ld_helper_dasm(DASM_OPS_16, const char* optext, int shift, int swap) |
| 1179 | 1203 | { |
| 1180 | 1204 | int breg, creg, u; |
| r242435 | r242436 | |
| 1231 | 1255 | } |
| 1232 | 1256 | |
| 1233 | 1257 | |
| 1258 | int 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 | |
| 1234 | 1273 | int arcompact_handle17_00_dasm(DASM_OPS_16) |
| 1235 | 1274 | { |
| 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"); |
| 1239 | 1276 | } |
| 1240 | 1277 | |
| 1241 | 1278 | int arcompact_handle17_01_dasm(DASM_OPS_16) |
| 1242 | 1279 | { |
| 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"); |
| 1246 | 1281 | } |
| 1247 | 1282 | |
| 1248 | 1283 | int arcompact_handle17_02_dasm(DASM_OPS_16) |
| 1249 | 1284 | { |
| 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"); |
| 1253 | 1286 | } |
| 1254 | 1287 | |
| 1255 | 1288 | int arcompact_handle17_03_dasm(DASM_OPS_16) |
| 1256 | 1289 | { |
| 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"); |
| 1260 | 1291 | } |
| 1261 | 1292 | |
| 1262 | 1293 | int arcompact_handle17_04_dasm(DASM_OPS_16) |
| 1263 | 1294 | { |
| 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"); |
| 1267 | 1296 | } |
| 1268 | 1297 | |
| 1269 | 1298 | int arcompact_handle17_05_dasm(DASM_OPS_16) |
| 1270 | 1299 | { |
| 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"); |
| 1274 | 1301 | } |
| 1275 | 1302 | |
| 1276 | 1303 | int arcompact_handle17_06_dasm(DASM_OPS_16) |
| 1277 | 1304 | { |
| 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"); |
| 1281 | 1306 | } |
| 1282 | 1307 | |
| 1283 | 1308 | int arcompact_handle17_07_dasm(DASM_OPS_16) |
| 1284 | 1309 | { |
| 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"); |
| 1288 | 1311 | } |
| 1289 | 1312 | |
| 1290 | 1313 | |
| r242435 | r242436 | |
| 1583 | 1606 | int arcompact_handle04_2f_3d_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3d> (%08x)", op); return 4;} |
| 1584 | 1607 | int arcompact_handle04_2f_3e_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3e> (%08x)", op); return 4;} |
| 1585 | 1608 | |
| 1609 | |
| 1610 | |
| 1611 | int arcompact_handle05_2f_09_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_09> (%08x)", op); return 4;} |
| 1612 | int arcompact_handle05_2f_0a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_0a> (%08x)", op); return 4;} |
| 1613 | int arcompact_handle05_2f_0b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_0b> (%08x)", op); return 4;} |
| 1614 | int arcompact_handle05_2f_0c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_0c> (%08x)", op); return 4;} |
| 1615 | int arcompact_handle05_2f_0d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_0d> (%08x)", op); return 4;} |
| 1616 | int arcompact_handle05_2f_0e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_0e> (%08x)", op); return 4;} |
| 1617 | int arcompact_handle05_2f_0f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_0f> (%08x)", op); return 4;} |
| 1618 | int arcompact_handle05_2f_10_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_10> (%08x)", op); return 4;} |
| 1619 | int arcompact_handle05_2f_11_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_11> (%08x)", op); return 4;} |
| 1620 | int arcompact_handle05_2f_12_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_12> (%08x)", op); return 4;} |
| 1621 | int arcompact_handle05_2f_13_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_13> (%08x)", op); return 4;} |
| 1622 | int arcompact_handle05_2f_14_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_14> (%08x)", op); return 4;} |
| 1623 | int arcompact_handle05_2f_15_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_15> (%08x)", op); return 4;} |
| 1624 | int arcompact_handle05_2f_16_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_16> (%08x)", op); return 4;} |
| 1625 | int arcompact_handle05_2f_17_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_17> (%08x)", op); return 4;} |
| 1626 | int arcompact_handle05_2f_18_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_18> (%08x)", op); return 4;} |
| 1627 | int arcompact_handle05_2f_19_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_19> (%08x)", op); return 4;} |
| 1628 | int arcompact_handle05_2f_1a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_1a> (%08x)", op); return 4;} |
| 1629 | int arcompact_handle05_2f_1b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_1b> (%08x)", op); return 4;} |
| 1630 | int arcompact_handle05_2f_1c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_1c> (%08x)", op); return 4;} |
| 1631 | int arcompact_handle05_2f_1d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_1d> (%08x)", op); return 4;} |
| 1632 | int arcompact_handle05_2f_1e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_1e> (%08x)", op); return 4;} |
| 1633 | int arcompact_handle05_2f_1f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_1f> (%08x)", op); return 4;} |
| 1634 | int arcompact_handle05_2f_20_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_20> (%08x)", op); return 4;} |
| 1635 | int arcompact_handle05_2f_21_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_21> (%08x)", op); return 4;} |
| 1636 | int arcompact_handle05_2f_22_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_22> (%08x)", op); return 4;} |
| 1637 | int arcompact_handle05_2f_23_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_23> (%08x)", op); return 4;} |
| 1638 | int arcompact_handle05_2f_24_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_24> (%08x)", op); return 4;} |
| 1639 | int arcompact_handle05_2f_25_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_25> (%08x)", op); return 4;} |
| 1640 | int arcompact_handle05_2f_26_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_26> (%08x)", op); return 4;} |
| 1641 | int arcompact_handle05_2f_27_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_27> (%08x)", op); return 4;} |
| 1642 | int arcompact_handle05_2f_28_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_28> (%08x)", op); return 4;} |
| 1643 | int arcompact_handle05_2f_29_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_29> (%08x)", op); return 4;} |
| 1644 | int arcompact_handle05_2f_2a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_2a> (%08x)", op); return 4;} |
| 1645 | int arcompact_handle05_2f_2b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_2b> (%08x)", op); return 4;} |
| 1646 | int arcompact_handle05_2f_2c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_2c> (%08x)", op); return 4;} |
| 1647 | int arcompact_handle05_2f_2d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_2d> (%08x)", op); return 4;} |
| 1648 | int arcompact_handle05_2f_2e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_2e> (%08x)", op); return 4;} |
| 1649 | int arcompact_handle05_2f_2f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_2f> (%08x)", op); return 4;} |
| 1650 | int arcompact_handle05_2f_30_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_30> (%08x)", op); return 4;} |
| 1651 | int arcompact_handle05_2f_31_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_31> (%08x)", op); return 4;} |
| 1652 | int arcompact_handle05_2f_32_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_32> (%08x)", op); return 4;} |
| 1653 | int arcompact_handle05_2f_33_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_33> (%08x)", op); return 4;} |
| 1654 | int arcompact_handle05_2f_34_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_34> (%08x)", op); return 4;} |
| 1655 | int arcompact_handle05_2f_35_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_35> (%08x)", op); return 4;} |
| 1656 | int arcompact_handle05_2f_36_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_36> (%08x)", op); return 4;} |
| 1657 | int arcompact_handle05_2f_37_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_37> (%08x)", op); return 4;} |
| 1658 | int arcompact_handle05_2f_38_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_38> (%08x)", op); return 4;} |
| 1659 | int arcompact_handle05_2f_39_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_39> (%08x)", op); return 4;} |
| 1660 | int arcompact_handle05_2f_3a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3a> (%08x)", op); return 4;} |
| 1661 | int arcompact_handle05_2f_3b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3b> (%08x)", op); return 4;} |
| 1662 | int arcompact_handle05_2f_3c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3c> (%08x)", op); return 4;} |
| 1663 | int arcompact_handle05_2f_3d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3d> (%08x)", op); return 4;} |
| 1664 | int arcompact_handle05_2f_3e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3e> (%08x)", op); return 4;} |
| 1665 | |
| 1666 | |
| 1586 | 1667 | int arcompact_handle04_2f_3f_00_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3f_00> (%08x)", op); return 4;} |
| 1587 | 1668 | int arcompact_handle04_2f_3f_06_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3f_06> (%08x)", op); return 4;} |
| 1588 | 1669 | int arcompact_handle04_2f_3f_07_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3f_07> (%08x)", op); return 4;} |
| r242435 | r242436 | |
| 1643 | 1724 | int arcompact_handle04_2f_3f_3e_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3f_3e> (%08x)", op); return 4;} |
| 1644 | 1725 | int arcompact_handle04_2f_3f_3f_dasm(DASM_OPS_32) { print("<illegal 0x04_2f_3f_3f> (%08x)", op); return 4;} |
| 1645 | 1726 | |
| 1727 | int arcompact_handle05_2f_3f_00_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_00> (%08x)", op); return 4;} |
| 1728 | int arcompact_handle05_2f_3f_01_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_01> (%08x)", op); return 4;} |
| 1729 | int arcompact_handle05_2f_3f_02_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_02> (%08x)", op); return 4;} |
| 1730 | int arcompact_handle05_2f_3f_03_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_03> (%08x)", op); return 4;} |
| 1731 | int arcompact_handle05_2f_3f_04_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_04> (%08x)", op); return 4;} |
| 1732 | int arcompact_handle05_2f_3f_05_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_05> (%08x)", op); return 4;} |
| 1733 | int arcompact_handle05_2f_3f_06_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_06> (%08x)", op); return 4;} |
| 1734 | int arcompact_handle05_2f_3f_07_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_07> (%08x)", op); return 4;} |
| 1735 | int arcompact_handle05_2f_3f_08_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_08> (%08x)", op); return 4;} |
| 1736 | int arcompact_handle05_2f_3f_09_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_09> (%08x)", op); return 4;} |
| 1737 | int arcompact_handle05_2f_3f_0a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_0a> (%08x)", op); return 4;} |
| 1738 | int arcompact_handle05_2f_3f_0b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_0b> (%08x)", op); return 4;} |
| 1739 | int arcompact_handle05_2f_3f_0c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_0c> (%08x)", op); return 4;} |
| 1740 | int arcompact_handle05_2f_3f_0d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_0d> (%08x)", op); return 4;} |
| 1741 | int arcompact_handle05_2f_3f_0e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_0e> (%08x)", op); return 4;} |
| 1742 | int arcompact_handle05_2f_3f_0f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_0f> (%08x)", op); return 4;} |
| 1743 | int arcompact_handle05_2f_3f_10_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_10> (%08x)", op); return 4;} |
| 1744 | int arcompact_handle05_2f_3f_11_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_11> (%08x)", op); return 4;} |
| 1745 | int arcompact_handle05_2f_3f_12_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_12> (%08x)", op); return 4;} |
| 1746 | int arcompact_handle05_2f_3f_13_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_13> (%08x)", op); return 4;} |
| 1747 | int arcompact_handle05_2f_3f_14_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_14> (%08x)", op); return 4;} |
| 1748 | int arcompact_handle05_2f_3f_15_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_15> (%08x)", op); return 4;} |
| 1749 | int arcompact_handle05_2f_3f_16_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_16> (%08x)", op); return 4;} |
| 1750 | int arcompact_handle05_2f_3f_17_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_17> (%08x)", op); return 4;} |
| 1751 | int arcompact_handle05_2f_3f_18_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_18> (%08x)", op); return 4;} |
| 1752 | int arcompact_handle05_2f_3f_19_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_19> (%08x)", op); return 4;} |
| 1753 | int arcompact_handle05_2f_3f_1a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_1a> (%08x)", op); return 4;} |
| 1754 | int arcompact_handle05_2f_3f_1b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_1b> (%08x)", op); return 4;} |
| 1755 | int arcompact_handle05_2f_3f_1c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_1c> (%08x)", op); return 4;} |
| 1756 | int arcompact_handle05_2f_3f_1d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_1d> (%08x)", op); return 4;} |
| 1757 | int arcompact_handle05_2f_3f_1e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_1e> (%08x)", op); return 4;} |
| 1758 | int arcompact_handle05_2f_3f_1f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_1f> (%08x)", op); return 4;} |
| 1759 | int arcompact_handle05_2f_3f_20_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_20> (%08x)", op); return 4;} |
| 1760 | int arcompact_handle05_2f_3f_21_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_21> (%08x)", op); return 4;} |
| 1761 | int arcompact_handle05_2f_3f_22_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_22> (%08x)", op); return 4;} |
| 1762 | int arcompact_handle05_2f_3f_23_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_23> (%08x)", op); return 4;} |
| 1763 | int arcompact_handle05_2f_3f_24_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_24> (%08x)", op); return 4;} |
| 1764 | int arcompact_handle05_2f_3f_25_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_25> (%08x)", op); return 4;} |
| 1765 | int arcompact_handle05_2f_3f_26_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_26> (%08x)", op); return 4;} |
| 1766 | int arcompact_handle05_2f_3f_27_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_27> (%08x)", op); return 4;} |
| 1767 | int arcompact_handle05_2f_3f_28_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_28> (%08x)", op); return 4;} |
| 1768 | int arcompact_handle05_2f_3f_29_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_29> (%08x)", op); return 4;} |
| 1769 | int arcompact_handle05_2f_3f_2a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_2a> (%08x)", op); return 4;} |
| 1770 | int arcompact_handle05_2f_3f_2b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_2b> (%08x)", op); return 4;} |
| 1771 | int arcompact_handle05_2f_3f_2c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_2c> (%08x)", op); return 4;} |
| 1772 | int arcompact_handle05_2f_3f_2d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_2d> (%08x)", op); return 4;} |
| 1773 | int arcompact_handle05_2f_3f_2e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_2e> (%08x)", op); return 4;} |
| 1774 | int arcompact_handle05_2f_3f_2f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_2f> (%08x)", op); return 4;} |
| 1775 | int arcompact_handle05_2f_3f_30_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_30> (%08x)", op); return 4;} |
| 1776 | int arcompact_handle05_2f_3f_31_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_31> (%08x)", op); return 4;} |
| 1777 | int arcompact_handle05_2f_3f_32_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_32> (%08x)", op); return 4;} |
| 1778 | int arcompact_handle05_2f_3f_33_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_33> (%08x)", op); return 4;} |
| 1779 | int arcompact_handle05_2f_3f_34_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_34> (%08x)", op); return 4;} |
| 1780 | int arcompact_handle05_2f_3f_35_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_35> (%08x)", op); return 4;} |
| 1781 | int arcompact_handle05_2f_3f_36_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_36> (%08x)", op); return 4;} |
| 1782 | int arcompact_handle05_2f_3f_37_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_37> (%08x)", op); return 4;} |
| 1783 | int arcompact_handle05_2f_3f_38_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_38> (%08x)", op); return 4;} |
| 1784 | int arcompact_handle05_2f_3f_39_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_39> (%08x)", op); return 4;} |
| 1785 | int arcompact_handle05_2f_3f_3a_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_3a> (%08x)", op); return 4;} |
| 1786 | int arcompact_handle05_2f_3f_3b_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_3b> (%08x)", op); return 4;} |
| 1787 | int arcompact_handle05_2f_3f_3c_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_3c> (%08x)", op); return 4;} |
| 1788 | int arcompact_handle05_2f_3f_3d_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_3d> (%08x)", op); return 4;} |
| 1789 | int arcompact_handle05_2f_3f_3e_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_3e> (%08x)", op); return 4;} |
| 1790 | int arcompact_handle05_2f_3f_3f_dasm(DASM_OPS_32) { print("<illegal 0x05_2f_3f_3f> (%08x)", op); return 4;} |
| 1646 | 1791 | |
| 1647 | 1792 | |
| 1648 | 1793 | |
| 1794 | |
| 1649 | 1795 | int arcompact_handle04_38_dasm(DASM_OPS_32) { print("<illegal 0x04_38> (%08x)", op); return 4;} |
| 1650 | 1796 | int arcompact_handle04_39_dasm(DASM_OPS_32) { print("<illegal 0x04_39> (%08x)", op); return 4;} |
| 1651 | 1797 | int arcompact_handle04_3a_dasm(DASM_OPS_32) { print("<illegal 0x04_3a> (%08x)", op); return 4;} |
trunk/src/emu/cpu/arcompact/arcompactdasm_ops.h
| r242435 | r242436 | |
| 115 | 115 | int arcompact_handle05_0b_dasm(DASM_OPS_32); |
| 116 | 116 | int arcompact_handle05_28_dasm(DASM_OPS_32); |
| 117 | 117 | int arcompact_handle05_29_dasm(DASM_OPS_32); |
| 118 | | int arcompact_handle05_2f_dasm(DASM_OPS_32); |
| 118 | //int arcompact_handle05_2f_dasm(DASM_OPS_32); |
| 119 | 119 | int arcompact_handle06_dasm(DASM_OPS_32); |
| 120 | 120 | int arcompact_handle07_dasm(DASM_OPS_32); |
| 121 | 121 | int arcompact_handle08_dasm(DASM_OPS_32); |
| r242435 | r242436 | |
| 368 | 368 | int arcompact_handle04_2f_3f_3e_dasm(DASM_OPS_32); //("<illegal 0x04_2f_3f_3e> (%08x)", op); return 4;} |
| 369 | 369 | int arcompact_handle04_2f_3f_3f_dasm(DASM_OPS_32); //("<illegal 0x04_2f_3f_3f> (%08x)", op); return 4;} |
| 370 | 370 | |
| 371 | int arcompact_handle05_2f_00_dasm(DASM_OPS_32); |
| 372 | int arcompact_handle05_2f_01_dasm(DASM_OPS_32); |
| 373 | int arcompact_handle05_2f_02_dasm(DASM_OPS_32); |
| 374 | int arcompact_handle05_2f_03_dasm(DASM_OPS_32); |
| 375 | int arcompact_handle05_2f_04_dasm(DASM_OPS_32); |
| 376 | int arcompact_handle05_2f_05_dasm(DASM_OPS_32); |
| 377 | int arcompact_handle05_2f_06_dasm(DASM_OPS_32); |
| 378 | int arcompact_handle05_2f_07_dasm(DASM_OPS_32); |
| 379 | int arcompact_handle05_2f_08_dasm(DASM_OPS_32); |
| 380 | int arcompact_handle05_2f_09_dasm(DASM_OPS_32); |
| 381 | int arcompact_handle05_2f_0a_dasm(DASM_OPS_32); |
| 382 | int arcompact_handle05_2f_0b_dasm(DASM_OPS_32); |
| 383 | int arcompact_handle05_2f_0c_dasm(DASM_OPS_32); |
| 384 | int arcompact_handle05_2f_0d_dasm(DASM_OPS_32); |
| 385 | int arcompact_handle05_2f_0e_dasm(DASM_OPS_32); |
| 386 | int arcompact_handle05_2f_0f_dasm(DASM_OPS_32); |
| 387 | int arcompact_handle05_2f_10_dasm(DASM_OPS_32); |
| 388 | int arcompact_handle05_2f_11_dasm(DASM_OPS_32); |
| 389 | int arcompact_handle05_2f_12_dasm(DASM_OPS_32); |
| 390 | int arcompact_handle05_2f_13_dasm(DASM_OPS_32); |
| 391 | int arcompact_handle05_2f_14_dasm(DASM_OPS_32); |
| 392 | int arcompact_handle05_2f_15_dasm(DASM_OPS_32); |
| 393 | int arcompact_handle05_2f_16_dasm(DASM_OPS_32); |
| 394 | int arcompact_handle05_2f_17_dasm(DASM_OPS_32); |
| 395 | int arcompact_handle05_2f_18_dasm(DASM_OPS_32); |
| 396 | int arcompact_handle05_2f_19_dasm(DASM_OPS_32); |
| 397 | int arcompact_handle05_2f_1a_dasm(DASM_OPS_32); |
| 398 | int arcompact_handle05_2f_1b_dasm(DASM_OPS_32); |
| 399 | int arcompact_handle05_2f_1c_dasm(DASM_OPS_32); |
| 400 | int arcompact_handle05_2f_1d_dasm(DASM_OPS_32); |
| 401 | int arcompact_handle05_2f_1e_dasm(DASM_OPS_32); |
| 402 | int arcompact_handle05_2f_1f_dasm(DASM_OPS_32); |
| 403 | int arcompact_handle05_2f_20_dasm(DASM_OPS_32); |
| 404 | int arcompact_handle05_2f_21_dasm(DASM_OPS_32); |
| 405 | int arcompact_handle05_2f_22_dasm(DASM_OPS_32); |
| 406 | int arcompact_handle05_2f_23_dasm(DASM_OPS_32); |
| 407 | int arcompact_handle05_2f_24_dasm(DASM_OPS_32); |
| 408 | int arcompact_handle05_2f_25_dasm(DASM_OPS_32); |
| 409 | int arcompact_handle05_2f_26_dasm(DASM_OPS_32); |
| 410 | int arcompact_handle05_2f_27_dasm(DASM_OPS_32); |
| 411 | int arcompact_handle05_2f_28_dasm(DASM_OPS_32); |
| 412 | int arcompact_handle05_2f_29_dasm(DASM_OPS_32); |
| 413 | int arcompact_handle05_2f_2a_dasm(DASM_OPS_32); |
| 414 | int arcompact_handle05_2f_2b_dasm(DASM_OPS_32); |
| 415 | int arcompact_handle05_2f_2c_dasm(DASM_OPS_32); |
| 416 | int arcompact_handle05_2f_2d_dasm(DASM_OPS_32); |
| 417 | int arcompact_handle05_2f_2e_dasm(DASM_OPS_32); |
| 418 | int arcompact_handle05_2f_2f_dasm(DASM_OPS_32); |
| 419 | int arcompact_handle05_2f_30_dasm(DASM_OPS_32); |
| 420 | int arcompact_handle05_2f_31_dasm(DASM_OPS_32); |
| 421 | int arcompact_handle05_2f_32_dasm(DASM_OPS_32); |
| 422 | int arcompact_handle05_2f_33_dasm(DASM_OPS_32); |
| 423 | int arcompact_handle05_2f_34_dasm(DASM_OPS_32); |
| 424 | int arcompact_handle05_2f_35_dasm(DASM_OPS_32); |
| 425 | int arcompact_handle05_2f_36_dasm(DASM_OPS_32); |
| 426 | int arcompact_handle05_2f_37_dasm(DASM_OPS_32); |
| 427 | int arcompact_handle05_2f_38_dasm(DASM_OPS_32); |
| 428 | int arcompact_handle05_2f_39_dasm(DASM_OPS_32); |
| 429 | int arcompact_handle05_2f_3a_dasm(DASM_OPS_32); |
| 430 | int arcompact_handle05_2f_3b_dasm(DASM_OPS_32); |
| 431 | int arcompact_handle05_2f_3c_dasm(DASM_OPS_32); |
| 432 | int arcompact_handle05_2f_3d_dasm(DASM_OPS_32); |
| 433 | int arcompact_handle05_2f_3e_dasm(DASM_OPS_32); |
| 434 | //int arcompact_handle05_2f_3f_dasm(DASM_OPS_32); |
| 435 | |
| 436 | int arcompact_handle05_2f_3f_00_dasm(DASM_OPS_32); |
| 437 | int arcompact_handle05_2f_3f_01_dasm(DASM_OPS_32); |
| 438 | int arcompact_handle05_2f_3f_02_dasm(DASM_OPS_32); |
| 439 | int arcompact_handle05_2f_3f_03_dasm(DASM_OPS_32); |
| 440 | int arcompact_handle05_2f_3f_04_dasm(DASM_OPS_32); |
| 441 | int arcompact_handle05_2f_3f_05_dasm(DASM_OPS_32); |
| 442 | int arcompact_handle05_2f_3f_06_dasm(DASM_OPS_32); |
| 443 | int arcompact_handle05_2f_3f_07_dasm(DASM_OPS_32); |
| 444 | int arcompact_handle05_2f_3f_08_dasm(DASM_OPS_32); |
| 445 | int arcompact_handle05_2f_3f_09_dasm(DASM_OPS_32); |
| 446 | int arcompact_handle05_2f_3f_0a_dasm(DASM_OPS_32); |
| 447 | int arcompact_handle05_2f_3f_0b_dasm(DASM_OPS_32); |
| 448 | int arcompact_handle05_2f_3f_0c_dasm(DASM_OPS_32); |
| 449 | int arcompact_handle05_2f_3f_0d_dasm(DASM_OPS_32); |
| 450 | int arcompact_handle05_2f_3f_0e_dasm(DASM_OPS_32); |
| 451 | int arcompact_handle05_2f_3f_0f_dasm(DASM_OPS_32); |
| 452 | int arcompact_handle05_2f_3f_10_dasm(DASM_OPS_32); |
| 453 | int arcompact_handle05_2f_3f_11_dasm(DASM_OPS_32); |
| 454 | int arcompact_handle05_2f_3f_12_dasm(DASM_OPS_32); |
| 455 | int arcompact_handle05_2f_3f_13_dasm(DASM_OPS_32); |
| 456 | int arcompact_handle05_2f_3f_14_dasm(DASM_OPS_32); |
| 457 | int arcompact_handle05_2f_3f_15_dasm(DASM_OPS_32); |
| 458 | int arcompact_handle05_2f_3f_16_dasm(DASM_OPS_32); |
| 459 | int arcompact_handle05_2f_3f_17_dasm(DASM_OPS_32); |
| 460 | int arcompact_handle05_2f_3f_18_dasm(DASM_OPS_32); |
| 461 | int arcompact_handle05_2f_3f_19_dasm(DASM_OPS_32); |
| 462 | int arcompact_handle05_2f_3f_1a_dasm(DASM_OPS_32); |
| 463 | int arcompact_handle05_2f_3f_1b_dasm(DASM_OPS_32); |
| 464 | int arcompact_handle05_2f_3f_1c_dasm(DASM_OPS_32); |
| 465 | int arcompact_handle05_2f_3f_1d_dasm(DASM_OPS_32); |
| 466 | int arcompact_handle05_2f_3f_1e_dasm(DASM_OPS_32); |
| 467 | int arcompact_handle05_2f_3f_1f_dasm(DASM_OPS_32); |
| 468 | int arcompact_handle05_2f_3f_20_dasm(DASM_OPS_32); |
| 469 | int arcompact_handle05_2f_3f_21_dasm(DASM_OPS_32); |
| 470 | int arcompact_handle05_2f_3f_22_dasm(DASM_OPS_32); |
| 471 | int arcompact_handle05_2f_3f_23_dasm(DASM_OPS_32); |
| 472 | int arcompact_handle05_2f_3f_24_dasm(DASM_OPS_32); |
| 473 | int arcompact_handle05_2f_3f_25_dasm(DASM_OPS_32); |
| 474 | int arcompact_handle05_2f_3f_26_dasm(DASM_OPS_32); |
| 475 | int arcompact_handle05_2f_3f_27_dasm(DASM_OPS_32); |
| 476 | int arcompact_handle05_2f_3f_28_dasm(DASM_OPS_32); |
| 477 | int arcompact_handle05_2f_3f_29_dasm(DASM_OPS_32); |
| 478 | int arcompact_handle05_2f_3f_2a_dasm(DASM_OPS_32); |
| 479 | int arcompact_handle05_2f_3f_2b_dasm(DASM_OPS_32); |
| 480 | int arcompact_handle05_2f_3f_2c_dasm(DASM_OPS_32); |
| 481 | int arcompact_handle05_2f_3f_2d_dasm(DASM_OPS_32); |
| 482 | int arcompact_handle05_2f_3f_2e_dasm(DASM_OPS_32); |
| 483 | int arcompact_handle05_2f_3f_2f_dasm(DASM_OPS_32); |
| 484 | int arcompact_handle05_2f_3f_30_dasm(DASM_OPS_32); |
| 485 | int arcompact_handle05_2f_3f_31_dasm(DASM_OPS_32); |
| 486 | int arcompact_handle05_2f_3f_32_dasm(DASM_OPS_32); |
| 487 | int arcompact_handle05_2f_3f_33_dasm(DASM_OPS_32); |
| 488 | int arcompact_handle05_2f_3f_34_dasm(DASM_OPS_32); |
| 489 | int arcompact_handle05_2f_3f_35_dasm(DASM_OPS_32); |
| 490 | int arcompact_handle05_2f_3f_36_dasm(DASM_OPS_32); |
| 491 | int arcompact_handle05_2f_3f_37_dasm(DASM_OPS_32); |
| 492 | int arcompact_handle05_2f_3f_38_dasm(DASM_OPS_32); |
| 493 | int arcompact_handle05_2f_3f_39_dasm(DASM_OPS_32); |
| 494 | int arcompact_handle05_2f_3f_3a_dasm(DASM_OPS_32); |
| 495 | int arcompact_handle05_2f_3f_3b_dasm(DASM_OPS_32); |
| 496 | int arcompact_handle05_2f_3f_3c_dasm(DASM_OPS_32); |
| 497 | int arcompact_handle05_2f_3f_3d_dasm(DASM_OPS_32); |
| 498 | int arcompact_handle05_2f_3f_3e_dasm(DASM_OPS_32); |
| 499 | int arcompact_handle05_2f_3f_3f_dasm(DASM_OPS_32); |
| 500 | |
| 501 | |
| 371 | 502 | int arcompact_handle04_38_dasm(DASM_OPS_32); //("<illegal 0x04_38> (%08x)", op); return 4;} |
| 372 | 503 | int arcompact_handle04_39_dasm(DASM_OPS_32); //("<illegal 0x04_39> (%08x)", op); return 4;} |
| 373 | 504 | int arcompact_handle04_3a_dasm(DASM_OPS_32); //("<illegal 0x04_3a> (%08x)", op); return 4;} |