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

Function getregidx

src/debug.cpp:742–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740};
741
742int getregidx(TCHAR **c)
743{
744 int i;
745 TCHAR *p = *c;
746 TCHAR tmp[10];
747 int extra = 0;
748
749 i = 0;
750 while (p[i]) {
751 tmp[i] = _totupper(p[i]);
752 if (i >= sizeof(tmp) / sizeof(TCHAR) - 1)
753 break;
754 i++;
755 }
756 tmp[i] = 0;
757 for (int i = 0; debugregs[i]; i++) {
758 if (!_tcsncmp(tmp, debugregs[i], _tcslen(debugregs[i]))) {
759 (*c) += _tcslen(debugregs[i]);
760 return i;
761 }
762 }
763 return -1;
764}
765
766uae_u32 returnregx(int regid)
767{

Callers 3

readregxFunction · 0.85
instruction_breakpointFunction · 0.85
parse_valuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected