Lines Matching refs:txt
869 struct operand *oper, char *txt, int *err)
880 data = read_number (txt);
896 if (txt[0] == 'r' || txt[0] == 'R')
897 txt++;
898 else if (txt[0] == '%' && (txt[1] == 'r' || txt[1] == 'R'))
899 txt += 2;
901 data = read_number (txt);
912 if ((data = spr_value (txt)) == 0) {
920 if ((data = tbr_value (txt)) == 0) {
928 data = htonl (read_number (txt));
1001 * txt The numeric string.
1006 long read_number (char *txt)
1013 if (txt == 0 || *txt == 0)
1016 if (*txt == '-') {
1018 ++txt;
1021 if (txt[0] == '0' && (txt[1] == 'x' || txt[1] == 'X')) /* hex */
1022 val = simple_strtoul (&txt[2], NULL, 16);
1024 val = simple_strtoul (txt, NULL, 10);