MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / readregx

Function readregx

src/debug.cpp:826–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826static 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
857static bool checkisneg(TCHAR **c)
858{

Callers 1

checkvaltype2Function · 0.85

Calls 3

getregidxFunction · 0.85
doubletof80Function · 0.85
returnregxFunction · 0.85

Tested by

no test coverage detected