MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / getRegisterName

Method getRegisterName

pcsx2/DebugTools/DebugInterface.cpp:433–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433const char* R5900DebugInterface::getRegisterName(int cat, int num)
434{
435 switch (cat)
436 {
437 case EECAT_GPR:
438 switch (num)
439 {
440 case 32: // pc
441 return "pc";
442 case 33: // hi
443 return "hi";
444 case 34: // lo
445 return "lo";
446 default:
447 return R5900::GPR_REG[num];
448 }
449 case EECAT_CP0:
450 return R5900::COP0_REG[num];
451 case EECAT_FPR:
452 return R5900::COP1_REG_FP[num];
453 case EECAT_FCR:
454 return R5900::COP1_REG_FCR[num];
455 case EECAT_VU0F:
456 switch (num)
457 {
458 case 32: // ACC
459 return "ACC";
460 default:
461 return R5900::COP2_REG_FP[num];
462 }
463 case EECAT_VU0I:
464 return R5900::COP2_REG_CTL[num];
465 case EECAT_GSPRIV:
466 return R5900::GS_REG_PRIV[num];
467 default:
468 return "Invalid";
469 }
470}
471
472u128 R5900DebugInterface::getRegister(int cat, int num)
473{

Callers 6

paintEventMethod · 0.80
fetchNewValueMethod · 0.80
toStringMethod · 0.80
setupRegisterFieldMethod · 0.80
parseReferenceMethod · 0.80
disassembleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected