Lines Matching refs:src
205 whatreg (unsigned int *preg, char *src) in whatreg() argument
210 if (ISDIGIT (src[1])) in whatreg()
212 new_reg = (src[0] - '0') * 10 + src[1] - '0'; in whatreg()
213 src += 2; in whatreg()
217 new_reg = (src[0] - '0'); in whatreg()
218 src += 1; in whatreg()
221 if (src[0] != 0 && src[0] != ',' && src[0] != '(' && src[0] != ')') in whatreg()
225 return src; in whatreg()
246 parse_reg (char *src, int *mode, unsigned int *preg) in parse_reg() argument
252 if ((src[0] == 's' || src[0] == 'S') in parse_reg()
253 && (src[1] == 'p' || src[1] == 'P') in parse_reg()
254 && (src[2] == 0 || src[2] == ',')) in parse_reg()
266 return src + 2; in parse_reg()
269 if (src[0] == 'r' || src[0] == 'R') in parse_reg()
271 if (src[1] == 'r' || src[1] == 'R') in parse_reg()
273 if (src[2] < '0' || src[2] > '9') in parse_reg()
276 res = whatreg (preg, src + 2); in parse_reg()
285 else if (src[1] == 'h' || src[1] == 'H') in parse_reg()
287 if (src[2] < '0' || src[2] > '9') in parse_reg()
290 res = whatreg (preg, src + 2); in parse_reg()
297 else if (src[1] == 'l' || src[1] == 'L') in parse_reg()
299 if (src[2] < '0' || src[2] > '9') in parse_reg()
302 res = whatreg (preg, src + 2); in parse_reg()
310 else if (src[1] == 'q' || src[1] == 'Q') in parse_reg()
312 if (src[2] < '0' || src[2] > '9') in parse_reg()
315 res = whatreg (preg, src + 2); in parse_reg()
326 if (src[1] < '0' || src[1] > '9') in parse_reg()
329 res = whatreg (preg, src + 1); in parse_reg()
429 char *src = *ptr; in get_ctrl_operand() local
432 while (*src == ' ') in get_ctrl_operand()
433 src++; in get_ctrl_operand()
439 if (! strncasecmp (ctrl_table[i].name, src, l)) in get_ctrl_operand()
442 if (*(src + l) && *(src + l) != ',') in get_ctrl_operand()
444 *ptr = src + l; /* Valid control name found: "consume" it. */ in get_ctrl_operand()
470 char *src = *ptr; in get_flags_operand() local
475 while (*src == ' ') in get_flags_operand()
476 src++; in get_flags_operand()
482 if (!src[j]) in get_flags_operand()
484 c = TOUPPER(src[j]); in get_flags_operand()
498 *ptr = src + j; in get_flags_operand()
517 char *src = *ptr; in get_interrupt_operand() local
520 while (*src == ' ') in get_interrupt_operand()
521 src++; in get_interrupt_operand()
526 while (*src) in get_interrupt_operand()
531 if (! strncasecmp (intr_table[i].name, src, l)) in get_interrupt_operand()
534 if (*(src + l) && *(src + l) != ',') in get_interrupt_operand()
536 *ptr = src + l; in get_interrupt_operand()
538 as_bad (_("unknown interrupt %s"), src); in get_interrupt_operand()
543 src += l; in get_interrupt_operand()
544 if (! *src) in get_interrupt_operand()
546 *ptr = src; in get_interrupt_operand()
551 if (*src == ',') in get_interrupt_operand()
552 src++; in get_interrupt_operand()
555 *ptr = src; in get_interrupt_operand()
607 char *src = *ptr; in get_cc_operand() local
610 while (*src == ' ') in get_cc_operand()
611 src++; in get_cc_operand()
617 if (! strncasecmp (table[i].name, src, l)) in get_cc_operand()
620 if (*(src + l) && *(src + l) != ',') in get_cc_operand()
622 *ptr = src + l; /* Valid cc found: "consume" it. */ in get_cc_operand()
632 char *src = *ptr; in get_operand() local
637 while (*src == ' ') in get_operand()
638 src++; in get_operand()
639 if (*src == '#') in get_operand()
643 src = parse_exp (src + 1, &(mode->exp)); in get_operand()
645 else if (*src == '@') in get_operand()
648 src = parse_reg (src + 1, &mode->regsize, &mode->reg); in get_operand()
654 end = parse_reg (src, &mode->mode, ®n); in get_operand()
661 src = end; in get_operand()
662 if (*src == '(') in get_operand()
664 src++; in get_operand()
665 end = parse_reg (src, &nw, &nr); in get_operand()
669 src = end; in get_operand()
671 if (*src != ')') in get_operand()
674 src++; in get_operand()
685 if (*src == '#') in get_operand()
686 src++; in get_operand()
687 src = parse_exp (src, &(mode->exp)); in get_operand()
688 src = checkfor (src, ')'); in get_operand()
704 src = parse_exp (src, &(mode->exp)); in get_operand()
705 if (*src == '(') in get_operand()
707 src++; in get_operand()
708 end = parse_reg (src, &(mode->mode), ®n); in get_operand()
714 src = checkfor (end, ')'); in get_operand()
726 *ptr = src; in get_operand()
1178 char *src = buffer; in build_bytes() local
1181 while (src < output_ptr) in build_bytes()
1183 *fragp = (src[0] << 4) | src[1]; in build_bytes()
1184 src += 2; in build_bytes()