| 824 | } |
| 825 | |
| 826 | static int readregx(TCHAR **c, uae_u32 *valp, debugfloatx80 *valx80p) |
| 827 | { |
| 828 | int idx; |
| 829 | uae_u32 addr; |
| 830 | TCHAR *old = *c; |
| 831 | |
| 832 | addr = 0; |
| 833 | if (_totupper(**c) == 'R') { |
| 834 | (*c)++; |
| 835 | } |
| 836 | idx = getregidx(c); |
| 837 | if (idx < 0) { |
| 838 | *c = old; |
| 839 | return 0; |
| 840 | } |
| 841 | #ifdef WITH_SOFTFLOAT |
| 842 | if (idx >= BREAKPOINT_REG_FPx && idx < BREAKPOINT_REG_FPx + 8) { |
| 843 | int fpureg = idx - BREAKPOINT_REG_FPx; |
| 844 | if (currprefs.fpu_mode > 0) { |
| 845 | *valx80p = regs.fp[fpureg].fpx; |
| 846 | } else { |
| 847 | *valx80p = doubletof80(regs.fp[fpureg].fp); |
| 848 | } |
| 849 | return NUMTYTPE_X; |
| 850 | } |
| 851 | #endif |
| 852 | addr = returnregx(idx); |
| 853 | *valp = addr; |
| 854 | return 1; |
| 855 | } |
| 856 | |
| 857 | static bool checkisneg(TCHAR **c) |
| 858 | { |
no test coverage detected