Lines Matching refs:mode

149   int mode;  member
1151 int mode; in get_operand() local
1157 mode = M6811_OP_NONE; in get_operand()
1169 mode = M6811_OP_DIRECT; in get_operand()
1181 mode = M6811_OP_IMM16; in get_operand()
1186 mode |= M6811_OP_HIGH_ADDR; in get_operand()
1191 mode |= M6811_OP_LOW_ADDR; in get_operand()
1198 mode |= M6811_OP_PAGE_ADDR; in get_operand()
1209 mode |= M6811_OP_CALL_ADDR; in get_operand()
1215 mode = M6811_OP_JUMP_REL; in get_operand()
1223 mode = M6812_OP_D_IDX; in get_operand()
1237 oper->mode = M6812_OP_IDX; in get_operand()
1247 mode = M6811_OP_PAGE_ADDR | M6812_OP_PAGE | M6811_OP_IND16; in get_operand()
1251 if (mode == M6811_OP_NONE || mode == M6812_OP_D_IDX) in get_operand()
1259 if (*p == ']' && mode == M6812_OP_D_IDX) in get_operand()
1267 oper->mode = mode | M6812_OP_REG; in get_operand()
1270 if (mode == M6812_OP_D_IDX) in get_operand()
1284 if (mode == M6812_OP_D_IDX) in get_operand()
1292 oper->mode = M6812_OP_D_IDX; in get_operand()
1344 if (mode == M6811_OP_NONE || mode == M6811_OP_DIRECT in get_operand()
1345 || mode == M6812_OP_D_IDX) in get_operand()
1358 if (mode == M6811_OP_NONE) in get_operand()
1378 if (reg == REG_NONE && mode == M6811_OP_NONE in get_operand()
1381 oper->mode = M6811_OP_IND16 | M6811_OP_JUMP_REL; in get_operand()
1387 mode = possible_mode; in get_operand()
1401 if (reg == REG_NONE && mode != M6811_OP_DIRECT in get_operand()
1402 && !(mode == M6811_OP_NONE && opmode & M6811_OP_IND16)) in get_operand()
1407 if (mode == M6812_OP_D_IDX) in get_operand()
1417 oper->mode = M6812_OP_D_IDX_2; in get_operand()
1423 if (mode == M6811_OP_NONE) in get_operand()
1428 mode = M6812_POST_DEC; in get_operand()
1436 mode = M6812_POST_INC; in get_operand()
1443 mode = M6812_OP_IDX; in get_operand()
1448 mode |= M6812_OP_IDX; in get_operand()
1450 oper->mode = mode; in get_operand()
1456 if (mode == M6812_OP_D_IDX_2) in get_operand()
1465 if (mode == M6811_OP_NONE) in get_operand()
1466 mode = M6811_OP_IND16 | M6811_OP_JUMP_REL; in get_operand()
1472 oper->mode = mode; in get_operand()
1482 check_range (long num, int mode) in check_range() argument
1486 switch (mode) in check_range()
1516 if (mode & M6812_AUTO_INC_DEC) in check_range()
1520 if (mode & (M6812_INDEXED_IND | M6812_INDEXED | M6812_OP_IDX)) in check_range()
1521 mode = M6811_OP_IND16; in check_range()
1523 if (mode & M6812_OP_JUMP_REL16) in check_range()
1524 mode = M6811_OP_IND16; in check_range()
1526 mode &= ~M6811_OP_BRANCH; in check_range()
1527 switch (mode) in check_range()
1569 fixup8 (expressionS *oper, int mode, int opmode) in fixup8() argument
1577 if (mode & M6812_OP_TRAP_ID in fixup8()
1590 if (!(mode & M6812_OP_TRAP_ID) in fixup8()
1591 && !check_range (oper->X_add_number, mode)) in fixup8()
1599 if (mode & M6812_OP_TRAP_ID) in fixup8()
1602 if (mode == M6811_OP_JUMP_REL) in fixup8()
1639 fixup16 (expressionS *oper, int mode, int opmode ATTRIBUTE_UNUSED) in fixup16() argument
1647 if (!check_range (oper->X_add_number, mode)) in fixup16()
1659 if ((opmode & M6811_OP_CALL_ADDR) && (mode & M6811_OP_IMM16)) in fixup16()
1661 else if (mode & M6812_OP_JUMP_REL16) in fixup16()
1663 else if (mode & M6812_OP_PAGE) in fixup16()
1687 fixup24 (expressionS *oper, int mode, int opmode ATTRIBUTE_UNUSED) in fixup24() argument
1695 if (!check_range (oper->X_add_number, mode)) in fixup24()
1718 fixup8_xg (expressionS *oper, int mode, int opmode) in fixup8_xg() argument
1743 if (!(check_range (oper->X_add_number, mode))) in fixup8_xg()
1751 if (mode == M68XG_OP_REL9) in fixup8_xg()
1758 else if (mode == M68XG_OP_REL10) in fixup8_xg()
2064 int mode; in build_indexed_byte() local
2068 mode = op->mode; in build_indexed_byte()
2069 if (mode & M6812_AUTO_INC_DEC) in build_indexed_byte()
2072 if (mode & (M6812_POST_INC | M6812_POST_DEC)) in build_indexed_byte()
2077 if (!check_range (val, mode)) in build_indexed_byte()
2081 if (mode & (M6812_POST_INC | M6812_PRE_INC)) in build_indexed_byte()
2114 if (mode & (M6812_OP_IDX | M6812_OP_D_IDX_2)) in build_indexed_byte()
2145 && ((!(mode & M6812_OP_IDX) && !(mode & M6812_OP_D_IDX_2)) in build_indexed_byte()
2153 if (val >= -16 && val <= 15 && !(mode & M6812_OP_D_IDX_2)) in build_indexed_byte()
2161 else if (val >= -256 && val <= 255 && !(mode & M6812_OP_D_IDX_2)) in build_indexed_byte()
2175 if (mode & M6812_OP_D_IDX_2) in build_indexed_byte()
2187 if (mode & M6812_OP_D_IDX_2) in build_indexed_byte()
2213 if ((mode & M6812_OP_IDX) && (current_architecture & cpu9s12x)) in build_indexed_byte()
2268 if (mode & (M6812_OP_REG | M6812_OP_D_IDX)) in build_indexed_byte()
2270 if (mode & M6812_OP_D_IDX) in build_indexed_byte()
2326 mode, op->reg1, op->reg2); in build_indexed_byte()
2379 if (!(operands[0].mode & (M6811_OP_LOW_ADDR | M6811_OP_HIGH_ADDR))) in build_insn_xg()
2381 operands[0].mode = 0; in build_insn_xg()
2388 fixup8_xg (&operands[0].exp, format, operands[0].mode); in build_insn_xg()
2400 operands[0].mode = M6811_OP_LOW_ADDR; in build_insn_xg()
2410 operands[0].mode = M6811_OP_HIGH_ADDR; in build_insn_xg()
2505 operands[i].mode); in build_insn()
2512 operands[i].mode); in build_insn()
2519 operands[i].mode); in build_insn()
2529 fixup8 (&operands[0].exp, M6811_OP_IX, operands[0].mode); in build_insn()
2546 fixup8 (&operands[i].exp, M6811_OP_BITMASK, operands[i].mode); in build_insn()
2551 fixup8 (&operands[i].exp, M6811_OP_JUMP_REL, operands[i].mode); in build_insn()
2555 fixup16 (&operands[1].exp, M6811_OP_IND16, operands[1].mode); in build_insn()
2559 fixup8 (&operands[i].exp, M6812_OP_PAGE, operands[i].mode); in build_insn()
2585 if (opcode->format == operands[nb_operands-1].mode) in find()
2617 int mode = operands[i].mode; in find() local
2619 if (mode & M6811_OP_IMM16) in find()
2626 if (mode == M6811_OP_DIRECT) in find()
2642 if (mode & M6811_OP_IND16) in find()
2653 if (mode & (M6811_OP_JUMP_REL | M6812_OP_JUMP_REL16)) in find()
2658 if (mode & M6812_OP_REG) in find()
2682 if (mode & M6812_OP_IDX) in find()
2698 if (mode & format & (M6812_OP_D_IDX | M6812_OP_D_IDX_2)) in find()
2703 if (mode & M6812_AUTO_INC_DEC) in find()
2773 && (operands[i].mode & M6811_OP_IND16)) in find_opcode()
2775 operands[i].mode = M6811_OP_IMM16; in find_opcode()
2940 operands[0].mode = M68XG_OP_R; in md_assemble()
2975 operands[0].mode = M68XG_OP_IMM3; in md_assemble()
3040 operands[0].mode = M68XG_OP_R; in md_assemble()
3136 operands[0].mode = M6811_OP_HIGH_ADDR; in md_assemble()
3141 operands[0].mode = M6811_OP_LOW_ADDR; in md_assemble()
3144 operands[0].mode = 0; in md_assemble()
3162 operands[0].mode = M68XG_OP_R_IMM4; in md_assemble()
3184 operands[0].mode = M68XG_OP_R_IMM16; in md_assemble()
3216 operands[0].mode = M68XG_OP_R_R; in md_assemble()
3275 operands[0].mode = M68XG_OP_R_R_R; in md_assemble()
3355 operands[0].mode = M68XG_OP_R_R_OFFS5; in md_assemble()
3386 operands[0].mode = M68XG_OP_RD_RB_RI; in md_assemble()
3390 operands[0].mode = M68XG_OP_RD_RB_mRI; in md_assemble()
3407 operands[0].mode = M68XG_OP_RD_RB_RIp; in md_assemble()
3593 if (operands[1].mode & (M6812_OP_IDX | M6812_OP_IDX_1 in md_assemble()
3598 if (operands[0].mode & (M6811_OP_IMM8 | M6811_OP_IMM16 in md_assemble()
3603 if (operands[1].mode & (M6811_OP_IND16)) in md_assemble()
3610 if (operands[0].mode & (M6811_OP_IMM8 | M6811_OP_IMM16)) in md_assemble()
3613 build_indexed_byte (&operands[1], operands[1].mode, 1); in md_assemble()
3616 operands[0].mode); in md_assemble()
3619 operands[0].mode); in md_assemble()
3623 else if (operands[0].mode & M6811_OP_IND16) in md_assemble()
3626 build_indexed_byte (&operands[1], operands[1].mode, 1); in md_assemble()
3627 fixup16 (&operands[0].exp, M6811_OP_IND16, operands[0].mode); in md_assemble()
3633 build_indexed_byte (&operands[0], operands[0].mode, 1); in md_assemble()
3634 build_indexed_byte (&operands[1], operands[1].mode, 1); in md_assemble()
3639 else if (operands[1].mode & M6811_OP_IND16) in md_assemble()
3642 if (operands[0].mode & (M6811_OP_IMM8 | M6811_OP_IMM16 in md_assemble()
3647 if (operands[1].mode & (M6811_OP_IND16)) in md_assemble()
3656 if (operands[0].mode & (M6811_OP_IMM8 | M6811_OP_IMM16)) in md_assemble()
3660 fixup8 (&operands[0].exp, M6811_OP_IMM8, operands[0].mode); in md_assemble()
3662 fixup16 (&operands[0].exp, M6811_OP_IMM16, operands[0].mode); in md_assemble()
3664 fixup16 (&operands[0].exp, M6811_OP_IND16, operands[0].mode); in md_assemble()
3667 else if (operands[0].mode & M6811_OP_IND16) in md_assemble()
3670 build_indexed_byte (&operands[1], operands[1].mode, 1); in md_assemble()
3671 fixup16 (&operands[0].exp, M6811_OP_IND16, operands[0].mode); in md_assemble()
3677 build_indexed_byte (&operands[0], operands[0].mode, 1); in md_assemble()
3678 fixup16 (&operands[1].exp, M6811_OP_IND16, operands[1].mode); in md_assemble()