MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / DumpROMInfo

Function DumpROMInfo

Source/Core/ROM.cpp:60–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58RomInfo g_ROM;
59
60static void DumpROMInfo( const ROMHeader & header )
61{
62 // The "Header" is actually something to do with the PI_DOM_*_OFS values...
63 #ifdef DAEDALUS_DEBUG_CONSOLE
64 DBGConsole_Msg(0, "Header: 0x%02x%02x%02x%02x", header.x1, header.x2, header.x3, header.x4);
65 DBGConsole_Msg(0, "Clockrate: 0x%08x", header.ClockRate);
66 DBGConsole_Msg(0, "BootAddr: 0x%08x", SwapEndian(header.BootAddress));
67 DBGConsole_Msg(0, "Release: 0x%08x", header.Release);
68 DBGConsole_Msg(0, "CRC1: 0x%08x", header.CRC1);
69 DBGConsole_Msg(0, "CRC2: 0x%08x", header.CRC2);
70 DBGConsole_Msg(0, "Unknown0: 0x%08x", header.Unknown0);
71 DBGConsole_Msg(0, "Unknown1: 0x%08x", header.Unknown1);
72 DBGConsole_Msg(0, "ImageName: '%s'", header.Name);
73 DBGConsole_Msg(0, "Unknown2: 0x%08x", header.Unknown2);
74 DBGConsole_Msg(0, "Unknown3: 0x%04x", header.Unknown3);
75 DBGConsole_Msg(0, "Unknown4: 0x%02x", header.Unknown4);
76 DBGConsole_Msg(0, "Manufacturer: 0x%02x", header.Manufacturer);
77 DBGConsole_Msg(0, "CartID: 0x%04x", header.CartID);
78 DBGConsole_Msg(0, "CountryID: 0x%02x - '%c'", header.CountryID, (char)header.CountryID);
79 DBGConsole_Msg(0, "Unknown5: 0x%02x", header.Unknown5);
80 #endif
81}
82
83static void ROM_SimulatePIFBoot( ECicType cic_chip, u32 Country )
84{

Callers 1

ROM_LoadFileFunction · 0.85

Calls 1

SwapEndianFunction · 0.85

Tested by

no test coverage detected