Lines Matching refs:opcodes

607   struct m68hc11_opcode *opcodes;  in md_begin()  local
616 opcodes = (struct m68hc11_opcode *) xmalloc (m68hc11_num_opcodes * in md_begin()
619 m68hc11_sorted_opcodes = opcodes; in md_begin()
625 opcodes[num_opcodes] = m68hc11_opcodes[i]; in md_begin()
626 if (opcodes[num_opcodes].name[0] == 'b' in md_begin()
627 && opcodes[num_opcodes].format & M6811_OP_JUMP_REL in md_begin()
628 && !(opcodes[num_opcodes].format & M6811_OP_BITMASK)) in md_begin()
631 opcodes[num_opcodes] = m68hc11_opcodes[i]; in md_begin()
637 opcodes[num_opcodes] = m68hc11_opcodes[i]; in md_begin()
638 opcodes[num_opcodes].name = alias_opcodes[j].alias; in md_begin()
644 qsort (opcodes, num_opcodes, sizeof (struct m68hc11_opcode), in md_begin()
655 for (i = 0; i < num_opcodes; i++, opcodes++) in md_begin()
659 if (strcmp (prev_name, opcodes->name)) in md_begin()
661 prev_name = (char *) opcodes->name; in md_begin()
668 opc->opcode = opcodes; in md_begin()
670 hash_insert (m68hc11_hash, opcodes->name, opc); in md_begin()
673 opc->format |= opcodes->format; in md_begin()
677 if (opcodes->arch == cpuxgate) in md_begin()
679 if (opcodes->format & (M68XG_OP_IMM3 | M68XG_OP_R | M68XG_OP_REL9 in md_begin()
682 else if (opcodes->format & (M68XG_OP_R_R | M68XG_OP_R_IMM4 in md_begin()
685 else if (opcodes->format & (M68XG_OP_R_R_R | M68XG_OP_R_R_OFFS5 in md_begin()
692 if (opcodes->format & M6811_OP_MASK) in md_begin()
694 if (opcodes->format & M6811_OP_BITMASK) in md_begin()
696 if (opcodes->format & (M6811_OP_JUMP_REL | M6812_OP_JUMP_REL16)) in md_begin()
698 if (opcodes->format & (M6812_OP_IND16_P2 | M6812_OP_IDX_P2)) in md_begin()
701 if ((opcodes->format & M6812_OP_PAGE) in md_begin()
702 && !(opcodes->format & M6811_OP_IND16)) in md_begin()
708 if (IS_CALL_SYMBOL (opcodes->format)) in md_begin()
968 struct m68hc11_opcode *opcodes; in print_opcode_list() local
975 opcodes = m68hc11_sorted_opcodes; in print_opcode_list()
980 for (i = 0; i < num_opcodes; i++, opcodes++) in print_opcode_list()
982 char *fmt = print_opcode_format (opcodes, example); in print_opcode_list()
987 printf ("%s %s\n", opcodes->name, fmt); in print_opcode_list()
991 if (strcmp (prev_name, opcodes->name)) in print_opcode_list()
996 printf ("%-5.5s ", opcodes->name); in print_opcode_list()
997 prev_name = (char *) opcodes->name; in print_opcode_list()