MCPcopy Create free account
hub / github.com/doldecomp/mkdd / showGPRMap

Method showGPRMap

libs/JSystem/JUtility/JUTException.cpp:482–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void JUTException::showGPRMap(OSContext *context)
483{
484 if (!sConsole)
485 {
486 return;
487 }
488
489 bool found_address_register = false;
490 sConsole->print("-------------------------------- GPRMAP\n");
491
492 for (int i = 0; i < 31; i++)
493 {
494 u32 address = context->gpr[i];
495
496 if (address >= 0x80000000 && 0x83000000 - 1 >= address)
497 {
498 found_address_register = true;
499
500 sConsole->print_f("R%02d: %08XH", i, address);
501 if (!showMapInfo_subroutine(address, true))
502 {
503 sConsole->print(" no information\n");
504 }
505 JUTConsoleManager::sManager->drawDirect(true);
506 waitTime(mPrintWaitTime1);
507 }
508 }
509
510 if (!found_address_register)
511 {
512 sConsole->print(" no register which seem to address.\n");
513 }
514}
515
516void JUTException::showSRR0Map(OSContext *context)
517{

Callers

nothing calls this directly

Calls 3

print_fMethod · 0.80
drawDirectMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected