149 if (
hex > 0x3f && 0x4c >
hex)
153 if (
hex > 0x4d && 0x54 >
hex)
155 if (
hex > 0x55 && 0x5c >
hex)
157 if (
hex > 0x5d && 0x63 >
hex)
159 if (
hex > 0x66 && 0x6b >
hex)
161 if (
hex > 0x6e && 0x74 >
hex)
163 if (
hex > 0x77 && 0x7c >
hex)
165 if (
hex > 0x9f && 0xa4 >
hex)
167 if (
hex > 0xa7 && 0xac >
hex)
169 if (
hex > 0xaf && 0xb4 >
hex)
171 if (
hex > 0xb7 && 0xbc >
hex)
176 static const char *
cb[] = {
436 "rlc [ix+0x%02x], b",
437 "rlc [ix+0x%02x], c",
438 "rlc [ix+0x%02x], d",
439 "rlc [ix+0x%02x], e",
440 "rlc [ix+0x%02x], h",
441 "rlc [ix+0x%02x], l",
443 "rlc [ix+0x%02x], a",
444 "rrc [ix+0x%02x], b",
445 "rrc [ix+0x%02x], c",
446 "rrc [ix+0x%02x], d",
447 "rrc [ix+0x%02x], e",
448 "rrc [ix+0x%02x], h",
449 "rrc [ix+0x%02x], l",
451 "rrc [ix+0x%02x], a",
468 "sla [ix+0x%02x], b",
469 "sla [ix+0x%02x], c",
470 "sla [ix+0x%02x], d",
471 "sla [ix+0x%02x], e",
472 "sla [ix+0x%02x], h",
473 "sla [ix+0x%02x], l",
475 "sla [ix+0x%02x], a",
476 "sra [ix+0x%02x], b",
477 "sra [ix+0x%02x], c",
478 "sra [ix+0x%02x], d",
479 "sra [ix+0x%02x], e",
480 "sra [ix+0x%02x], h",
481 "sra [ix+0x%02x], l",
483 "sra [ix+0x%02x], a",
484 "sll [ix+0x%02x], b",
485 "sll [ix+0x%02x], c",
486 "sll [ix+0x%02x], d",
487 "sll [ix+0x%02x], e",
488 "sll [ix+0x%02x], h",
489 "sll [ix+0x%02x], l",
491 "sll [ix+0x%02x], a",
492 "srl [ix+0x%02x], b",
493 "srl [ix+0x%02x], c",
494 "srl [ix+0x%02x], d",
495 "srl [ix+0x%02x], e",
496 "srl [ix+0x%02x], h",
497 "srl [ix+0x%02x], l",
499 "srl [ix+0x%02x], a",
500 "bit 0, [ix+0x%02x]",
501 "bit 1, [ix+0x%02x]",
502 "bit 2, [ix+0x%02x]",
503 "bit 3, [ix+0x%02x]",
504 "bit 4, [ix+0x%02x]",
505 "bit 5, [ix+0x%02x]",
506 "bit 6, [ix+0x%02x]",
507 "bit 7, [ix+0x%02x]",
508 "res 0, [ix+0x%02x], b",
509 "res 0, [ix+0x%02x], c",
510 "res 0, [ix+0x%02x], d",
511 "res 0, [ix+0x%02x], e",
512 "res 0, [ix+0x%02x], h",
513 "res 0, [ix+0x%02x], l",
514 "res 0, [ix+0x%02x]",
515 "res 0, [ix+0x%02x], a",
516 "res 1, [ix+0x%02x], b",
517 "res 1, [ix+0x%02x], c",
518 "res 1, [ix+0x%02x], d",
519 "res 1, [ix+0x%02x], e",
520 "res 1, [ix+0x%02x], h",
521 "res 1, [ix+0x%02x], l",
522 "res 1, [ix+0x%02x]",
523 "res 1, [ix+0x%02x], a",
524 "res 2, [ix+0x%02x], b",
525 "res 2, [ix+0x%02x], c",
526 "res 2, [ix+0x%02x], d",
527 "res 2, [ix+0x%02x], e",
528 "res 2, [ix+0x%02x], h",
529 "res 2, [ix+0x%02x], l",
530 "res 2, [ix+0x%02x]",
531 "res 2, [ix+0x%02x], a",
532 "res 3, [ix+0x%02x], b",
533 "res 3, [ix+0x%02x], c",
534 "res 3, [ix+0x%02x], d",
535 "res 3, [ix+0x%02x], e",
536 "res 3, [ix+0x%02x], h",
537 "res 3, [ix+0x%02x], l",
538 "res 3, [ix+0x%02x]",
539 "res 3, [ix+0x%02x], a",
540 "res 4, [ix+0x%02x], b",
541 "res 4, [ix+0x%02x], c",
542 "res 4, [ix+0x%02x], d",
543 "res 4, [ix+0x%02x], e",
544 "res 4, [ix+0x%02x], h",
545 "res 4, [ix+0x%02x], l",
546 "res 4, [ix+0x%02x]",
547 "res 4, [ix+0x%02x], a",
548 "res 5, [ix+0x%02x], b",
549 "res 5, [ix+0x%02x], c",
550 "res 5, [ix+0x%02x], d",
551 "res 5, [ix+0x%02x], e",
552 "res 5, [ix+0x%02x], h",
553 "res 5, [ix+0x%02x], l",
554 "res 5, [ix+0x%02x]",
555 "res 5, [ix+0x%02x], a",
556 "res 6, [ix+0x%02x], b",
557 "res 6, [ix+0x%02x], c",
558 "res 6, [ix+0x%02x], d",
559 "res 6, [ix+0x%02x], e",
560 "res 6, [ix+0x%02x], h",
561 "res 6, [ix+0x%02x], l",
562 "res 6, [ix+0x%02x]",
563 "res 6, [ix+0x%02x], a",
564 "res 7, [ix+0x%02x], b",
565 "res 7, [ix+0x%02x], c",
566 "res 7, [ix+0x%02x], d",
567 "res 7, [ix+0x%02x], e",
568 "res 7, [ix+0x%02x], h",
569 "res 7, [ix+0x%02x], l",
570 "res 7, [ix+0x%02x]",
571 "res 7, [ix+0x%02x], a",
572 "set 0, [ix+0x%02x], b",
573 "set 0, [ix+0x%02x], c",
574 "set 0, [ix+0x%02x], d",
575 "set 0, [ix+0x%02x], e",
576 "set 0, [ix+0x%02x], h",
577 "set 0, [ix+0x%02x], l",
578 "set 0, [ix+0x%02x]",
579 "set 0, [ix+0x%02x], a",
580 "set 1, [ix+0x%02x], b",
581 "set 1, [ix+0x%02x], c",
582 "set 1, [ix+0x%02x], d",
583 "set 1, [ix+0x%02x], e",
584 "set 1, [ix+0x%02x], h",
585 "set 1, [ix+0x%02x], l",
586 "set 1, [ix+0x%02x]",
587 "set 1, [ix+0x%02x], a",
588 "set 2, [ix+0x%02x], b",
589 "set 2, [ix+0x%02x], c",
590 "set 2, [ix+0x%02x], d",
591 "set 2, [ix+0x%02x], e",
592 "set 2, [ix+0x%02x], h",
593 "set 2, [ix+0x%02x], l",
594 "set 2, [ix+0x%02x]",
595 "set 2, [ix+0x%02x], a",
596 "set 3, [ix+0x%02x], b",
597 "set 3, [ix+0x%02x], c",
598 "set 3, [ix+0x%02x], d",
599 "set 3, [ix+0x%02x], e",
600 "set 3, [ix+0x%02x], h",
601 "set 3, [ix+0x%02x], l",
602 "set 3, [ix+0x%02x]",
603 "set 3, [ix+0x%02x], a",
604 "set 4, [ix+0x%02x], b",
605 "set 4, [ix+0x%02x], c",
606 "set 4, [ix+0x%02x], d",
607 "set 4, [ix+0x%02x], e",
608 "set 4, [ix+0x%02x], h",
609 "set 4, [ix+0x%02x], l",
610 "set 4, [ix+0x%02x]",
611 "set 4, [ix+0x%02x], a",
612 "set 5, [ix+0x%02x], b",
613 "set 5, [ix+0x%02x], c",
614 "set 5, [ix+0x%02x], d",
615 "set 5, [ix+0x%02x], e",
616 "set 5, [ix+0x%02x], h",
617 "set 5, [ix+0x%02x], l",
618 "set 5, [ix+0x%02x]",
619 "set 5, [ix+0x%02x], a",
620 "set 6, [ix+0x%02x], b",
621 "set 6, [ix+0x%02x], c",
622 "set 6, [ix+0x%02x], d",
623 "set 6, [ix+0x%02x], e",
624 "set 6, [ix+0x%02x], h",
625 "set 6, [ix+0x%02x], l",
626 "set 6, [ix+0x%02x]",
627 "set 6, [ix+0x%02x], a",
628 "set 7, [ix+0x%02x], b",
629 "set 7, [ix+0x%02x], c",
630 "set 7, [ix+0x%02x], d",
631 "set 7, [ix+0x%02x], e",
632 "set 7, [ix+0x%02x], h",
633 "set 7, [ix+0x%02x], l",
634 "set 7, [ix+0x%02x]",
635 "set 7, [ix+0x%02x], a",
640 "rlc b, [iy+0x%02x]",
641 "rlc c, [iy+0x%02x]",
642 "rlc d, [iy+0x%02x]",
643 "rlc e, [iy+0x%02x]",
644 "rlc h, [iy+0x%02x]",
645 "rlc l, [iy+0x%02x]",
647 "rlc a, [iy+0x%02x]",
648 "rrc b, [iy+0x%02x]",
649 "rrc c, [iy+0x%02x]",
650 "rrc d, [iy+0x%02x]",
651 "rrc e, [iy+0x%02x]",
652 "rrc h, [iy+0x%02x]",
653 "rrc l, [iy+0x%02x]",
655 "rrc a, [iy+0x%02x]",
672 "sla b, [iy+0x%02x]",
673 "sla c, [iy+0x%02x]",
674 "sla d, [iy+0x%02x]",
675 "sla e, [iy+0x%02x]",
676 "sla h, [iy+0x%02x]",
677 "sla l, [iy+0x%02x]",
679 "sla a, [iy+0x%02x]",
680 "sra b, [iy+0x%02x]",
681 "sra c, [iy+0x%02x]",
682 "sra d, [iy+0x%02x]",
683 "sra e, [iy+0x%02x]",
684 "sra h, [iy+0x%02x]",
685 "sra l, [iy+0x%02x]",
687 "sra a, [iy+0x%02x]",
688 "sll b, [iy+0x%02x]",
689 "sll c, [iy+0x%02x]",
690 "sll d, [iy+0x%02x]",
691 "sll e, [iy+0x%02x]",
692 "sll h, [iy+0x%02x]",
693 "sll l, [iy+0x%02x]",
695 "sll a, [iy+0x%02x]",
696 "srl b, [iy+0x%02x]",
697 "srl c, [iy+0x%02x]",
698 "srl d, [iy+0x%02x]",
699 "srl e, [iy+0x%02x]",
700 "srl h, [iy+0x%02x]",
701 "srl l, [iy+0x%02x]",
703 "srl a, [iy+0x%02x]",
704 "bit 0, [iy+0x%02x]",
705 "bit 1, [iy+0x%02x]",
706 "bit 2, [iy+0x%02x]",
707 "bit 3, [iy+0x%02x]",
708 "bit 4, [iy+0x%02x]",
709 "bit 5, [iy+0x%02x]",
710 "bit 6, [iy+0x%02x]",
711 "bit 7, [iy+0x%02x]",
712 "res 0, [iy+0x%02x], b",
713 "res 0, [iy+0x%02x], c",
714 "res 0, [iy+0x%02x], d",
715 "res 0, [iy+0x%02x], e",
716 "res 0, [iy+0x%02x], h",
717 "res 0, [iy+0x%02x], l",
718 "res 0, [iy+0x%02x]",
719 "res 0, [iy+0x%02x], a",
720 "res 1, [iy+0x%02x], b",
721 "res 1, [iy+0x%02x], c",
722 "res 1, [iy+0x%02x], d",
723 "res 1, [iy+0x%02x], e",
724 "res 1, [iy+0x%02x], h",
725 "res 1, [iy+0x%02x], l",
726 "res 1, [iy+0x%02x]",
727 "res 1, [iy+0x%02x], a",
728 "res 2, [iy+0x%02x], b",
729 "res 2, [iy+0x%02x], c",
730 "res 2, [iy+0x%02x], d",
731 "res 2, [iy+0x%02x], e",
732 "res 2, [iy+0x%02x], h",
733 "res 2, [iy+0x%02x], l",
734 "res 2, [iy+0x%02x]",
735 "res 2, [iy+0x%02x], a",
736 "res 3, [iy+0x%02x], b",
737 "res 3, [iy+0x%02x], c",
738 "res 3, [iy+0x%02x], d",
739 "res 3, [iy+0x%02x], e",
740 "res 3, [iy+0x%02x], h",
741 "res 3, [iy+0x%02x], l",
742 "res 3, [iy+0x%02x]",
743 "res 3, [iy+0x%02x], a",
744 "res 4, [iy+0x%02x], b",
745 "res 4, [iy+0x%02x], c",
746 "res 4, [iy+0x%02x], d",
747 "res 4, [iy+0x%02x], e",
748 "res 4, [iy+0x%02x], h",
749 "res 4, [iy+0x%02x], l",
750 "res 4, [iy+0x%02x]",
751 "res 4, [iy+0x%02x], a",
752 "res 5, [iy+0x%02x], b",
753 "res 5, [iy+0x%02x], c",
754 "res 5, [iy+0x%02x], d",
755 "res 5, [iy+0x%02x], e",
756 "res 5, [iy+0x%02x], h",
757 "res 5, [iy+0x%02x], l",
758 "res 5, [iy+0x%02x]",
759 "res 5, [iy+0x%02x], a",
760 "res 6, [iy+0x%02x], b",
761 "res 6, [iy+0x%02x], c",
762 "res 6, [iy+0x%02x], d",
763 "res 6, [iy+0x%02x], e",
764 "res 6, [iy+0x%02x], h",
765 "res 6, [iy+0x%02x], l",
766 "res 6, [iy+0x%02x]",
767 "res 6, [iy+0x%02x], a",
768 "res 7, [iy+0x%02x], b",
769 "res 7, [iy+0x%02x], c",
770 "res 7, [iy+0x%02x], d",
771 "res 7, [iy+0x%02x], e",
772 "res 7, [iy+0x%02x], h",
773 "res 7, [iy+0x%02x], l",
774 "res 7, [iy+0x%02x]",
775 "res 7, [iy+0x%02x], a",
776 "set 0, [iy+0x%02x], b",
777 "set 0, [iy+0x%02x], c",
778 "set 0, [iy+0x%02x], d",
779 "set 0, [iy+0x%02x], e",
780 "set 0, [iy+0x%02x], h",
781 "set 0, [iy+0x%02x], l",
782 "set 0, [iy+0x%02x]",
783 "set 0, [iy+0x%02x], a",
784 "set 1, [iy+0x%02x], b",
785 "set 1, [iy+0x%02x], c",
786 "set 1, [iy+0x%02x], d",
787 "set 1, [iy+0x%02x], e",
788 "set 1, [iy+0x%02x], h",
789 "set 1, [iy+0x%02x], l",
790 "set 1, [iy+0x%02x]",
791 "set 1, [iy+0x%02x], a",
792 "set 2, [iy+0x%02x], b",
793 "set 2, [iy+0x%02x], c",
794 "set 2, [iy+0x%02x], d",
795 "set 2, [iy+0x%02x], e",
796 "set 2, [iy+0x%02x], h",
797 "set 2, [iy+0x%02x], l",
798 "set 2, [iy+0x%02x]",
799 "set 2, [iy+0x%02x], a",
800 "set 3, [iy+0x%02x], b",
801 "set 3, [iy+0x%02x], c",
802 "set 3, [iy+0x%02x], d",
803 "set 3, [iy+0x%02x], e",
804 "set 3, [iy+0x%02x], h",
805 "set 3, [iy+0x%02x], l",
806 "set 3, [iy+0x%02x]",
807 "set 3, [iy+0x%02x], a",
808 "set 4, [iy+0x%02x], b",
809 "set 4, [iy+0x%02x], c",
810 "set 4, [iy+0x%02x], d",
811 "set 4, [iy+0x%02x], e",
812 "set 4, [iy+0x%02x], h",
813 "set 4, [iy+0x%02x], l",
814 "set 4, [iy+0x%02x]",
815 "set 4, [iy+0x%02x], a",
816 "set 5, [iy+0x%02x], b",
817 "set 5, [iy+0x%02x], c",
818 "set 5, [iy+0x%02x], d",
819 "set 5, [iy+0x%02x], e",
820 "set 5, [iy+0x%02x], h",
821 "set 5, [iy+0x%02x], l",
822 "set 5, [iy+0x%02x]",
823 "set 5, [iy+0x%02x], a",
824 "set 6, [iy+0x%02x], b",
825 "set 6, [iy+0x%02x], c",
826 "set 6, [iy+0x%02x], d",
827 "set 6, [iy+0x%02x], e",
828 "set 6, [iy+0x%02x], h",
829 "set 6, [iy+0x%02x], l",
830 "set 6, [iy+0x%02x]",
831 "set 6, [iy+0x%02x], a",
832 "set 7, [iy+0x%02x], b",
833 "set 7, [iy+0x%02x], c",
834 "set 7, [iy+0x%02x], d",
835 "set 7, [iy+0x%02x], e",
836 "set 7, [iy+0x%02x], h",
837 "set 7, [iy+0x%02x], l",
838 "set 7, [iy+0x%02x]",
839 "set 7, [iy+0x%02x], a",
static const char hex[16]
static const z80_opcode fd[]
static const z80_opcode z80_op[]
static const z80_opcode dd[]
static const char * ddcb[]
static const char * fdcb[]
static ut8 z80_ed_branch_index_res(ut8 hex)
static ut8 z80_fddd_branch_index_res(ut8 hex)
static const z80_opcode ed[]