Home | History | Annotate | Download | only in config

Lines Matching refs:SRC

263       char *src = p1->name;
270 dst = buffer = malloc (strlen (src) + 1);
271 while (*src)
273 if (*src == '.')
275 src++;
278 if (*src == '/')
279 cmplen = src - p1->name + 1;
280 *dst++ = *src++;
376 parse_reg (char *src, op_type *mode, unsigned int *reg, int direction)
382 if (!is_name_beginner (*src) || *src == '\001')
384 end = src + 1;
387 len = end - src;
389 if (len == 2 && TOLOWER (src[0]) == 's' && TOLOWER (src[1]) == 'p')
396 TOLOWER (src[0]) == 'c' &&
397 TOLOWER (src[1]) == 'c' &&
398 TOLOWER (src[2]) == 'r')
405 TOLOWER (src[0]) == 'e' &&
406 TOLOWER (src[1]) == 'x' &&
407 TOLOWER (src[2]) == 'r')
414 TOLOWER (src[0]) == 'v' &&
415 TOLOWER (src[1]) == 'b' &&
416 TOLOWER (src[2]) == 'r')
423 TOLOWER (src[0]) == 's' &&
424 TOLOWER (src[1]) == 'b' &&
425 TOLOWER (src[2]) == 'r')
431 if (len == 2 && TOLOWER (src[0]) == 'f' && TOLOWER (src[1]) == 'p')
437 if (len == 3 && TOLOWER (src[0]) == 'e' && TOLOWER (src[1]) == 'r' &&
438 src[2] >= '0' && src[2] <= '7')
441 *reg = src[2] - '0';
446 if (len == 2 && TOLOWER (src[0]) == 'e' && src[1] >= '0' && src[1] <= '7')
449 *reg = src[1] - '0' + 8;
455 if (TOLOWER (src[0]) == 'r')
457 if (src[1] >= '0' && src[1] <= '7')
459 if (len == 3 && TOLOWER (src[2]) == 'l')
462 *reg = (src[1] - '0') + 8;
465 if (len == 3 && TOLOWER (src[2]) == 'h')
468 *reg = (src[1] - '0');
474 *reg = (src[1] - '0');
489 parse_exp (char *src, struct h8_op *op)
494 input_line_pointer = src;
498 src = input_line_pointer;
501 return skip_colonthing (src, &op->mode);
505 /* If SRC starts with an explicit operand size, skip it and store the size
509 skip_colonthing (char *src, int *mode)
511 if (*src == ':')
513 src++;
515 if (src[0] == '8' && !ISDIGIT (src[1]))
517 else if (src[0] == '2' && !ISDIGIT (src[1]))
519 else if (src[0] == '3' && !ISDIGIT (src[1]))
521 else if (src[0] == '4' && !ISDIGIT (src[1]))
523 else if (src[0] == '5' && !ISDIGIT (src[1]))
525 else if (src[0] == '2' && src[1] == '4' && !ISDIGIT (src[2]))
527 else if (src[0] == '3' && src[1] == '2' && !ISDIGIT (src[2]))
529 else if (src[0] == '1' && src[1] == '6' && !ISDIGIT (src[2]))
534 while (ISDIGIT (*src))
535 src++;
537 return src;
605 char *src = *ptr;
613 if (src[0] == '(' && src[8] == ')')
614 ++ src;
618 if (TOLOWER (src[0]) == 'e' && TOLOWER (src[1]) == 'r' &&
619 ISDIGIT (src[2]) && src[3] == '-' &&
620 TOLOWER (src[4]) == 'e' && TOLOWER (src[5]) == 'r' && ISDIGIT (src[6]))
624 low = src[2] - '0';
625 high = src[6] - '0';
645 if (src[7] == ')')
646 *ptr = src + 8;
648 *ptr = src + 7;
652 len = parse_reg (src, &op->mode, &op->reg, direction);
655 src += len;
656 if (*src == '.')
659 switch (src[1])
683 src += 2;
685 *ptr = src;
689 if (*src == '@')
691 src++;
692 if (*src == '@')
694 *ptr = parse_exp (src + 1, op);
715 if (*src == '-' || *src == '+')
717 len = parse_reg (src + 1, &mode, &num, direction);
722 *ptr = parse_exp (src, op);
731 op->mode = src[0] == '-' ? RDPREDEC : RDPREINC;
733 *ptr = src + 1 + len;
736 if (*src == '(')
738 src++;
741 len = parse_reg (src, &mode, &op->reg, direction);
742 if (len != 0 && (mode & MODE) == REG && src[len] == '.')
744 switch (TOLOWER (src[len + 1]))
760 && src[len + 2] == ','
761 && TOLOWER (src[len + 3]) != 'p'
762 && TOLOWER (src[len + 4]) != 'c'
763 && src[len + 5] != ')')
765 *ptr = src + len + 6;
778 src = parse_exp (src, op);
779 if (*src == ')')
782 *ptr = src + 1;
786 if (*src != ',')
791 src++;
793 len = parse_reg (src, &mode, &op->reg, direction);
799 src += len;
800 if (src[0] == '.')
802 switch (TOLOWER (src[1]))
816 src += 2;
821 src = skip_colonthing (src, &op->mode);
823 if (*src != ')' && '(')
828 *ptr = src + 1;
831 len = parse_reg (src, &mode, &num, direction);
835 src += len;
836 if (*src == '+' || *src == '-')
842 op->mode = *src == '+' ? RSPOSTINC : RSPOSTDEC;
844 src++;
845 *ptr = src;
855 *ptr = src;
864 *ptr = parse_exp (src, op);
869 if (*src == '#')
872 *ptr = parse_exp (src + 1, op);
875 else if (strncmp (src, "mach", 4) == 0 ||
876 strncmp (src, "macl", 4) == 0 ||
877 strncmp (src, "MACH", 4) == 0 ||
878 strncmp (src, "MACL", 4) == 0)
880 op->reg = TOLOWER (src[3]) == 'l';
882 *ptr = src + 4;
888 *ptr = parse_exp (src, op);
904 get_operand (&ptr, operand + 0, SRC);
914 get_operand (&ptr, operand + 0, SRC);
922 get_operand (&ptr, operand + 0, SRC);
1023 len = parse_reg (ptr, &mode, &num, SRC);
1032 len = parse_reg (++ptr, &mode, &num2, SRC);