Lines Matching refs:token
399 tic30_operand (char *token) in tic30_operand() argument
402 char ind_buffer[strlen (token)]; in tic30_operand()
405 debug ("In tic30_operand with %s\n", token); in tic30_operand()
409 if (*token == DIRECT_REFERENCE) in tic30_operand()
411 char *token_posn = token + 1; in tic30_operand()
428 current_op->direct.label = token + 1; in tic30_operand()
430 input_line_pointer = token + 1; in tic30_operand()
452 current_op->direct.address = atoi (token + 1); in tic30_operand()
457 else if (*token == INDIRECT_REFERENCE) in tic30_operand()
468 ind_buffer[0] = *token; in tic30_operand()
470 for (count = 1; count < strlen (token); count++) in tic30_operand()
473 ind_buffer[buffer_posn] = TOLOWER (*(token + count)); in tic30_operand()
475 if ((*(token + count - 1) == 'a' || *(token + count - 1) == 'A') in tic30_operand()
476 && (*(token + count) == 'r' || *(token + count) == 'R')) in tic30_operand()
485 if (*(token + count + 1) < '0' || *(token + count + 1) > '7') in tic30_operand()
490 ar_number = *(token + count + 1) - '0'; in tic30_operand()
495 if (*(token + count) == '(') in tic30_operand()
500 if (is_digit_char (*(token + count + 1))) in tic30_operand()
511 while (*(token + count) != ')') in tic30_operand()
513 if (!is_digit_char (*(token + count))) in tic30_operand()
518 disp[disp_posn++] = *(token + (count++)); in tic30_operand()
571 reg *regop = (reg *) hash_find (reg_hash, token); in tic30_operand()
588 if (!is_digit_char (*token) in tic30_operand()
589 || *(token + 1) == 'x' in tic30_operand()
590 || strchr (token, 'h')) in tic30_operand()
595 debug ("Probably a label: %s\n", token); in tic30_operand()
596 current_op->immediate.label = malloc (strlen (token) + 1); in tic30_operand()
597 strcpy (current_op->immediate.label, token); in tic30_operand()
598 current_op->immediate.label[strlen (token)] = '\0'; in tic30_operand()
600 input_line_pointer = token; in tic30_operand()
623 for (count = 0; count < strlen (token); count++) in tic30_operand()
624 if (*(token + count) == '.') in tic30_operand()
626 current_op->immediate.label = malloc (strlen (token) + 1); in tic30_operand()
627 strcpy (current_op->immediate.label, token); in tic30_operand()
628 current_op->immediate.label[strlen (token)] = '\0'; in tic30_operand()
629 current_op->immediate.f_number = (float) atof (token); in tic30_operand()
630 current_op->immediate.s_number = (int) atoi (token); in tic30_operand()
631 current_op->immediate.u_number = (unsigned int) atoi (token); in tic30_operand()
656 tic30_parallel_insn (char *token) in tic30_parallel_insn() argument
659 char *current_posn = token; in tic30_parallel_insn()
663 debug ("In tic30_parallel_insn with %s\n", token); in tic30_parallel_insn()
672 p_opcode = (partemplate *) hash_find (parop_hash, token); in tic30_parallel_insn()
686 for (i = 0; i < strlen (token); i++) in tic30_parallel_insn()
688 char ch = *(token + i); in tic30_parallel_insn()
716 sprintf (token, "q_%s_%s", second_opcode, first_opcode); in tic30_parallel_insn()
717 p_opcode = (partemplate *) hash_find (parop_hash, token); in tic30_parallel_insn()
1216 char *token; in md_atof() local
1225 token = input_line_pointer; in md_atof()
1236 float_value = (float) atof (token); in md_atof()