mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
DSPTool make dump look a bit nicer
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3933 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d68303219c
commit
8c36e85b34
@ -302,7 +302,7 @@ int main(int argc, const char *argv[])
|
||||
results.append("Start:\n");
|
||||
for (int initial_reg = 0; initial_reg < 32; initial_reg++)
|
||||
{
|
||||
results.append(StringFromFormat("%s: %04x ", pdregname(initial_reg), reg_vector.at(initial_reg)));
|
||||
results.append(StringFromFormat("%02x %04x ", initial_reg, reg_vector.at(initial_reg)));
|
||||
if ((initial_reg + 1) % 8 == 0)
|
||||
results.append("\n");
|
||||
}
|
||||
@ -314,11 +314,12 @@ int main(int argc, const char *argv[])
|
||||
results.append(StringFromFormat("Step %3d:\n", step));
|
||||
for (int reg = 0; reg < 32; reg++)
|
||||
{
|
||||
if ((reg >= 0x0c) && (reg <= 0x0f)) continue;
|
||||
u16 last_reg = reg_vector.at((step*32-32)+reg);
|
||||
u16 current_reg = reg_vector.at(step*32+reg);
|
||||
if (last_reg != current_reg)
|
||||
{
|
||||
results.append(StringFromFormat("%s: %04x %04x\n", pdregname(reg), last_reg, current_reg));
|
||||
results.append(StringFromFormat("%02x %-7s: %04x %04x\n", reg, pdregname(reg), last_reg, current_reg));
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user