| 431 | } |
| 432 | |
| 433 | const 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 | |
| 472 | u128 R5900DebugInterface::getRegister(int cat, int num) |
| 473 | { |
no outgoing calls
no test coverage detected