| 867 | } |
| 868 | |
| 869 | static bool readbinx (TCHAR **c, uae_u32 *valp) |
| 870 | { |
| 871 | uae_u32 val = 0; |
| 872 | bool first = true; |
| 873 | bool negative = false; |
| 874 | |
| 875 | ignore_ws (c); |
| 876 | negative = checkisneg(c); |
| 877 | for (;;) { |
| 878 | TCHAR nc = **c; |
| 879 | if (nc != '1' && nc != '0' && nc != '`') { |
| 880 | if (first) |
| 881 | return false; |
| 882 | break; |
| 883 | } |
| 884 | first = false; |
| 885 | (*c)++; |
| 886 | if (nc != '`') { |
| 887 | val <<= 1; |
| 888 | if (nc == '1') { |
| 889 | val |= 1; |
| 890 | } |
| 891 | } |
| 892 | } |
| 893 | *valp = val * (negative ? -1 : 1); |
| 894 | return true; |
| 895 | } |
| 896 | |
| 897 | static bool readhexx (TCHAR **c, uae_u32 *valp) |
| 898 | { |
no test coverage detected