mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
Merge pull request #7468 from Tilka/fifo_regs
FIFOAnalyzer: improve printing of XF/BP registers
This commit is contained in:
commit
8293cd068f
@ -242,10 +242,10 @@ void FIFOAnalyzer::UpdateDetails()
|
|||||||
const u8* stream_start = objectdata;
|
const u8* stream_start = objectdata;
|
||||||
const u8* stream_end = stream_start + streamSize * 4;
|
const u8* stream_end = stream_start + streamSize * 4;
|
||||||
|
|
||||||
new_label = QStringLiteral("XF %1 ").arg(cmd2, 16, 8, QLatin1Char('0'));
|
new_label = QStringLiteral("XF %1 ").arg(cmd2, 8, 16, QLatin1Char('0'));
|
||||||
while (objectdata < stream_end)
|
while (objectdata < stream_end)
|
||||||
{
|
{
|
||||||
new_label += QStringLiteral("%1").arg(*objectdata++, 16, 2, QLatin1Char('0'));
|
new_label += QStringLiteral("%1").arg(*objectdata++, 2, 16, QLatin1Char('0'));
|
||||||
|
|
||||||
if (((objectdata - stream_start) % 4) == 0)
|
if (((objectdata - stream_start) % 4) == 0)
|
||||||
new_label += QLatin1Char(' ');
|
new_label += QLatin1Char(' ');
|
||||||
@ -281,7 +281,7 @@ void FIFOAnalyzer::UpdateDetails()
|
|||||||
{
|
{
|
||||||
u32 cmd2 = Common::swap32(objectdata);
|
u32 cmd2 = Common::swap32(objectdata);
|
||||||
objectdata += 4;
|
objectdata += 4;
|
||||||
new_label = QStringLiteral("BP %02X %06X")
|
new_label = QStringLiteral("BP %02 %06")
|
||||||
.arg(cmd2 >> 24, 2, 16, QLatin1Char('0'))
|
.arg(cmd2 >> 24, 2, 16, QLatin1Char('0'))
|
||||||
.arg(cmd2 & 0xFFFFFF, 6, 16, QLatin1Char('0'));
|
.arg(cmd2 & 0xFFFFFF, 6, 16, QLatin1Char('0'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user