Lines Matching refs:opcode
159 struct m68hc11_opcode *opcode; member
186 struct m9s12xg_opcode *opcode; member
486 opc->opcode->name, in m68hc11_print_statistics()
668 opc->opcode = opcodes; in md_begin()
735 print_opcode_format (struct m68hc11_opcode *opcode, int example) in print_opcode_format() argument
738 int format = opcode->format; in print_opcode_format()
1013 struct m68hc11_opcode *opcode; in print_insn_format() local
1022 opcode = opc->opcode; in print_insn_format()
1029 fmt = print_opcode_format (opcode, 0); in print_insn_format()
1030 sprintf (buf, "\t%-5.5s %s", opcode->name, fmt); in print_insn_format()
1033 opcode++; in print_insn_format()
1035 while (strcmp (opcode->name, name) == 0); in print_insn_format()
1826 build_jump_insn (struct m68hc11_opcode *opcode, operand operands[], in build_jump_insn() argument
1835 gas_assert ((opcode->format & M6811_OP_BITMASK) == 0); in build_jump_insn()
1839 code = opcode->opcode; in build_jump_insn()
1849 && (!check_range (n, opcode->format) && in build_jump_insn()
1888 if (!check_range (n, opcode->format)) in build_jump_insn()
1893 else if (opcode->format & M6812_OP_JUMP_REL16) in build_jump_insn()
1907 else if (opcode->format & M6812_OP_JUMP_REL16) in build_jump_insn()
1967 build_dbranch_insn (struct m68hc11_opcode *opcode, operand operands[], in build_dbranch_insn() argument
1976 gas_assert ((opcode->format & M6811_OP_BITMASK) == 0); in build_dbranch_insn()
1980 code = opcode->opcode & 0x0FF; in build_dbranch_insn()
1992 if (opcode->format & M6812_OP_IBCC_MARKER) in build_dbranch_insn()
1994 else if (opcode->format & M6812_OP_TBCC_MARKER) in build_dbranch_insn()
1997 if (!(opcode->format & M6812_OP_EQ_MARKER)) in build_dbranch_insn()
2369 build_insn_xg (struct m68hc11_opcode *opcode, in build_insn_xg() argument
2377 format = opcode->format; in build_insn_xg()
2387 number_to_chars_bigendian (f, opcode->opcode >> 8, 1); in build_insn_xg()
2399 number_to_chars_bigendian (f, opcode->opcode >> 8, 1); in build_insn_xg()
2409 number_to_chars_bigendian (f, (opcode->opcode >> 8) | 0x08, 1); in build_insn_xg()
2421 number_to_chars_bigendian (f, opcode->opcode >> 8, 1); /* High byte. */ in build_insn_xg()
2427 number_to_chars_bigendian (f, opcode->opcode >> 8, 1); /* High byte. */ in build_insn_xg()
2433 number_to_chars_bigendian (f, opcode->opcode, 2); in build_insn_xg()
2444 build_insn (struct m68hc11_opcode *opcode, in build_insn() argument
2454 format = opcode->format; in build_insn()
2478 number_to_chars_bigendian (f, opcode->opcode, 1); in build_insn()
2572 struct m68hc11_opcode *opcode; in find() local
2576 opcode = opc->opcode; in find()
2584 for (pos = match = 0; match == 0 && pos < opc->nb_modes; pos++, opcode++) in find()
2585 if (opcode->format == operands[nb_operands-1].mode) in find()
2586 return opcode; in find()
2596 for (pos = match = 0; match == 0 && pos < opc->nb_modes; pos++, opcode++) in find()
2599 long format = opcode->format; in find()
2603 if (opcode->format & M6811_OP_MASK) in find()
2605 if (opcode->format & M6811_OP_BITMASK) in find()
2607 if (opcode->format & (M6811_OP_JUMP_REL | M6812_OP_JUMP_REL16)) in find()
2609 if (opcode->format & (M6812_OP_IND16_P2 | M6812_OP_IDX_P2)) in find()
2611 if ((opcode->format & M6812_OP_PAGE) in find()
2612 && (!IS_CALL_SYMBOL (opcode->format) || nb_operands == 2)) in find()
2721 op_indirect = opcode; in find()
2732 opcode = op_indirect; in find()
2736 return match ? opcode : 0; in find()
2752 struct m68hc11_opcode *opcode; in find_opcode() local
2758 return opc->opcode; in find_opcode()
2782 opcode = find (opc, operands, i); in find_opcode()
2788 if (opcode && !(opcode->format & M6812_OP_PAGE)) in find_opcode()
2789 return opcode; in find_opcode()
2791 if (opcode && *input_line_pointer != ',') in find_opcode()
2792 return opcode; in find_opcode()
2815 struct m68hc11_opcode *opcode; in md_assemble() local
2861 opcode_local.name = opc->opcode->name; in md_assemble()
2863 opcode_local.opcode = opc->opcode->opcode; in md_assemble()
2864 opcode_local.format = opc->opcode->format; in md_assemble()
2873 build_insn_xg (opc->opcode, operands, 0); in md_assemble()
2878 if (strncmp (opc->opcode->name, "tfr",3) == 0) in md_assemble()
2910 opc->opcode->opcode = 0x00f8 | ( operands[0].reg1 << 8); in md_assemble()
2912 opc->opcode->opcode = 0x00f9 | ( operands[1].reg1 << 8); in md_assemble()
2914 opc->opcode->opcode = 0x00fa | ( operands[0].reg1 << 8); in md_assemble()
2922 opcode_local.opcode = opc->opcode->opcode; in md_assemble()
2942 opcode = find (opc, operands, 1); in md_assemble()
2943 if (opcode) in md_assemble()
2945 opcode_local.opcode = opcode->opcode in md_assemble()
2974 opcode_local.opcode |= (operands[0].exp.X_add_number); in md_assemble()
2977 opcode = find (opc, operands, 1); in md_assemble()
2978 if (opcode) in md_assemble()
2980 opcode_local.opcode = opcode->opcode; in md_assemble()
2981 opcode_local.opcode in md_assemble()
3000 if (strncmp (opc->opcode->name, "sif",3) == 0) in md_assemble()
3008 opc->opcode->opcode = 0x0300; in md_assemble()
3017 opcode_local.opcode = 0x00f7 | (operands[0].reg1 << 8); in md_assemble()
3042 opcode = find (opc, operands, 1); in md_assemble()
3043 if (opcode) in md_assemble()
3045 if ((strncmp (opc->opcode->name, "com",3) == 0) in md_assemble()
3046 || (strncmp (opc->opcode->name, "neg",3) == 0)) in md_assemble()
3049 opcode_local.opcode = opcode->opcode in md_assemble()
3051 else if (strncmp (opc->opcode->name, "tst",3) == 0) in md_assemble()
3053 opcode_local.opcode = opcode->opcode in md_assemble()
3056 opcode_local.opcode |= (operands[0].reg1 << 8); in md_assemble()
3083 opcode_local.opcode = opc->opcode->opcode; in md_assemble()
3128 as_bad ("Invalid immediate mode for `%s'", opc->opcode->name); in md_assemble()
3164 opcode = find (opc, operands, 1); in md_assemble()
3165 if (opcode) in md_assemble()
3166 opcode_local.opcode = opcode->opcode in md_assemble()
3175 opcode_local.opcode in md_assemble()
3186 opcode = find (opc, operands, 1); in md_assemble()
3187 if (opcode) in md_assemble()
3189 opcode_local.opcode = opcode->opcode in md_assemble()
3195 opcode_local.opcode = opc->opcode->opcode in md_assemble()
3218 opcode = find (opc, operands, 1); in md_assemble()
3219 if (opcode) in md_assemble()
3221 if ((strncmp (opc->opcode->name, "com",3) == 0) in md_assemble()
3222 || (strncmp (opc->opcode->name, "mov",3) == 0) in md_assemble()
3223 || (strncmp (opc->opcode->name, "neg",3) == 0)) in md_assemble()
3229 opcode_local.opcode = opcode->opcode in md_assemble()
3232 else if ((strncmp (opc->opcode->name, "cmp",3) == 0) in md_assemble()
3233 || (strncmp (opc->opcode->name, "cpc",3) == 0)) in md_assemble()
3238 opcode_local.opcode = opcode->opcode in md_assemble()
3243 opcode_local.opcode = opcode->opcode in md_assemble()
3277 opcode = find (opc, operands, 1); in md_assemble()
3278 if (opcode) in md_assemble()
3280 opcode_local.opcode = opcode->opcode in md_assemble()
3357 opcode = find (opc, operands, 1); in md_assemble()
3358 if (opcode) in md_assemble()
3360 opcode_local.opcode = opcode->opcode in md_assemble()
3372 opcode_local.opcode in md_assemble()
3423 opcode = find (opc, operands, 1); in md_assemble()
3424 if (opcode) in md_assemble()
3426 opcode_local.opcode = opcode->opcode in md_assemble()
3435 opc->opcode->name, (char *)op_end); in md_assemble()
3443 opc->opcode->name); in md_assemble()
3446 if (opc->opcode && !flag_mri) in md_assemble()
3461 if (opc->opcode == 0) in md_assemble()
3543 opcode = find_opcode (opc, operands, &nb_operands); in md_assemble()
3546 opcode = 0; in md_assemble()
3548 if ((opcode || alias_id >= 0) && !flag_mri) in md_assemble()
3574 if (opcode == 0) in md_assemble()
3697 if ((opcode->format & M6812_XBCC_MARKER) in md_assemble()
3698 && (opcode->format & M6811_OP_JUMP_REL)) in md_assemble()
3699 build_dbranch_insn (opcode, operands, nb_operands, branch_optimize); in md_assemble()
3705 else if ((opcode->format & (M6811_OP_JUMP_REL | M6812_OP_JUMP_REL16)) in md_assemble()
3706 && !(opcode->format & M6811_OP_BITMASK)) in md_assemble()
3707 build_jump_insn (opcode, operands, nb_operands, branch_optimize); in md_assemble()
3709 build_insn (opcode, operands, nb_operands); in md_assemble()