• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:mode

348   op_type mode;  member
381 parse_reg (char *src, op_type *mode, unsigned int *reg, int direction) in parse_reg() argument
396 *mode = PSIZE | REG | direction; in parse_reg()
405 *mode = CCR; in parse_reg()
414 *mode = EXR; in parse_reg()
423 *mode = VBR; in parse_reg()
432 *mode = SBR; in parse_reg()
438 *mode = PSIZE | REG | direction; in parse_reg()
445 *mode = L_32 | REG | direction; in parse_reg()
453 *mode = L_16 | REG | direction; in parse_reg()
466 *mode = L_8 | REG | direction; in parse_reg()
472 *mode = L_8 | REG | direction; in parse_reg()
478 *mode = L_16 | REG | direction; in parse_reg()
506 return skip_colonthing (src, &op->mode); in parse_exp()
514 skip_colonthing (char *src, int *mode) in skip_colonthing() argument
519 *mode &= ~SIZE; in skip_colonthing()
521 *mode |= L_8; in skip_colonthing()
523 *mode |= L_2; in skip_colonthing()
525 *mode |= L_3; in skip_colonthing()
527 *mode |= L_4; in skip_colonthing()
529 *mode |= L_5; in skip_colonthing()
531 *mode |= L_24; in skip_colonthing()
533 *mode |= L_32; in skip_colonthing()
535 *mode |= L_16; in skip_colonthing()
611 op_type mode; in get_operand() local
615 op->mode = 0; in get_operand()
649 op->mode = REG; in get_operand()
657 len = parse_reg (src, &op->mode, &op->reg, direction); in get_operand()
663 int size = op->mode & SIZE; in get_operand()
669 op->mode = (op->mode & ~MODE) | LOWREG; in get_operand()
674 op->mode = (op->mode & ~MODE) | LOWREG; in get_operand()
675 op->mode = (op->mode & ~SIZE) | L_16; in get_operand()
678 op->mode = (op->mode & ~MODE) | LOWREG; in get_operand()
681 op->mode = (op->mode & ~MODE) | LOWREG; in get_operand()
682 op->mode = (op->mode & ~SIZE) | L_8; in get_operand()
704 op->mode = VECIND; in get_operand()
716 op->mode = MEMIND; in get_operand()
722 len = parse_reg (src + 1, &mode, &num, direction); in get_operand()
726 op->mode = ABS | direction; in get_operand()
731 if (((mode & SIZE) != PSIZE) in get_operand()
733 && (!Nmode || ((mode & SIZE) != L_32))) in get_operand()
736 op->mode = src[0] == '-' ? RDPREDEC : RDPREINC; in get_operand()
746 len = parse_reg (src, &mode, &op->reg, direction); in get_operand()
747 if (len != 0 && (mode & MODE) == REG && src[len] == '.') in get_operand()
752 mode = PCIDXB | direction; in get_operand()
755 mode = PCIDXW | direction; in get_operand()
758 mode = PCIDXL | direction; in get_operand()
761 mode = 0; in get_operand()
764 if (mode in get_operand()
771 op->mode |= mode; in get_operand()
786 op->mode |= ABS | direction; in get_operand()
798 len = parse_reg (src, &mode, &op->reg, direction); in get_operand()
799 if (len == 0 || (mode & MODE) != REG) in get_operand()
810 op->mode |= INDEXB | direction; in get_operand()
813 op->mode |= INDEXW | direction; in get_operand()
816 op->mode |= INDEXL | direction; in get_operand()
825 op->mode |= DISP | direction; in get_operand()
826 src = skip_colonthing (src, &op->mode); in get_operand()
836 len = parse_reg (src, &mode, &num, direction); in get_operand()
843 if (((mode & SIZE) != PSIZE) in get_operand()
845 && (!Nmode || ((mode & SIZE) != L_32))) in get_operand()
847 op->mode = *src == '+' ? RSPOSTINC : RSPOSTDEC; in get_operand()
853 if (((mode & SIZE) != PSIZE) in get_operand()
855 && (!Nmode || ((mode & SIZE) != L_32))) in get_operand()
858 op->mode = direction | IND | PSIZE; in get_operand()
868 op->mode = ABS | direction; in get_operand()
876 op->mode = IMM; in get_operand()
886 op->mode = MACREG; in get_operand()
892 op->mode = PCREL; in get_operand()
953 operand[0].mode = 0; in get_mova_operands()
967 operand[0].mode = (operand[0].mode & ~MODE) | INDEXB; in get_mova_operands()
970 operand[0].mode = (operand[0].mode & ~MODE) | INDEXW; in get_mova_operands()
973 operand[0].mode = (operand[0].mode & ~MODE) | INDEXL; in get_mova_operands()
979 else if ((operand[1].mode & MODE) == LOWREG) in get_mova_operands()
981 switch (operand[1].mode & SIZE) in get_mova_operands()
984 operand[0].mode = (operand[0].mode & ~MODE) | INDEXB; in get_mova_operands()
987 operand[0].mode = (operand[0].mode & ~MODE) | INDEXW; in get_mova_operands()
990 operand[0].mode = (operand[0].mode & ~MODE) | INDEXL; in get_mova_operands()
1003 if (((operand[1].mode & MODE) == REG || (operand[1].mode & MODE) == LOWREG) in get_mova_operands()
1004 && (operand[2].mode & MODE) == REG in get_mova_operands()
1007 operand[1].mode = operand[2].mode = 0; in get_mova_operands()
1019 int mode, len, type = 0; in get_rtsl_operands() local
1028 len = parse_reg (ptr, &mode, &num, SRC); in get_rtsl_operands()
1029 if (len == 0 || (mode & MODE) != REG) in get_rtsl_operands()
1037 len = parse_reg (++ptr, &mode, &num2, SRC); in get_rtsl_operands()
1038 if (len == 0 || (mode & MODE) != REG) in get_rtsl_operands()
1059 operand[0].mode = RS32; in get_rtsl_operands()
1060 operand[1].mode = RD32; in get_rtsl_operands()
1085 while (noperands < 3 && operands[noperands].mode != 0) in get_specific()
1107 int x = operands[i].mode; in get_specific()
1181 operands[i].mode &= ~MODE; in get_specific()
1182 operands[i].mode |= ABSJMP; in get_specific()
1186 operands[i].mode &= ~SIZE; in get_specific()
1187 operands[i].mode |= L_16; in get_specific()
1189 if ((operands[i].mode & SIZE) == L_32 in get_specific()
1342 const char *t = ((operand->mode & MODE) == IMM) ? "#" : "@"; in do_a_fix_imm()
1346 switch (operand->mode & SIZE) in do_a_fix_imm()
1403 if ((operand->mode & MODE) == DISP && relaxmode == 1) in do_a_fix_imm()
1415 switch (operand->mode & SIZE) in do_a_fix_imm()
1420 where = (operand->mode & SIZE) == L_24 ? -1 : 0; in do_a_fix_imm()
1422 if ((operand->mode & MODE) == DISP && relaxmode == 1) in do_a_fix_imm()
1530 operand[d].mode = c; in build_bytes()
1537 operand[d].mode = c; in build_bytes()
1579 operand[0].mode = 0; in build_bytes()
1583 operand[d].mode |= MEMRELAX; in build_bytes()
1599 if (operand[0].mode == MACREG) in build_bytes()
1654 int x = operand[i].mode; in build_bytes()
1751 if ((operand->mode & SIZE) == L_32) in build_bytes()
1803 if (operand[argn].mode != RD16) in clever_message()
1812 if (operand[argn].mode != RS8) in clever_message()
1820 if (operand[argn].mode != ABS16DST) in clever_message()
1827 if (operand[argn].mode != RD8) in clever_message()
1835 if (operand[argn].mode != ABS16SRC) in clever_message()
1859 if (SXmode && (operand->mode & MODE) == DISP) in fix_operand_size()
1863 if ((operand->mode & SIZE) == 0 in fix_operand_size()
1869 operand->mode |= L_2; in fix_operand_size()
1873 if ((operand->mode & SIZE) == L_2) in fix_operand_size()
1881 if ((operand->mode & SIZE) == 0) in fix_operand_size()
1882 switch (operand->mode & MODE) in fix_operand_size()
1898 operand->mode |= L_24; in fix_operand_size()
1900 operand->mode |= L_16; in fix_operand_size()
1908 operand->mode |= bsize; in fix_operand_size()
1910 operand->mode |= L_8; in fix_operand_size()
1913 operand->mode |= L_16; in fix_operand_size()
1983 operand[0].mode = 0; in md_assemble()
1984 operand[1].mode = 0; in md_assemble()
1985 operand[2].mode = 0; in md_assemble()
2006 if ((operand[0].mode != RSINC) in md_assemble()
2016 || (operand[1].mode != RDDEC) in md_assemble()
2043 switch (operand[0].mode & MODE) in md_assemble()
2059 for (i = 0; i < 3 && operand[i].mode != 0; i++) in md_assemble()