reformatted the ARM fatal error popup a little bit

This commit is contained in:
Thomas Jentzsch 2021-08-25 23:15:52 +02:00
parent 66233326b6
commit 8bd023f1a1
1 changed files with 6 additions and 4 deletions

View File

@ -269,15 +269,17 @@ void Thumbulator::dump_regs()
{
for (int cnt = 0; cnt <= 12; cnt++)
{
statusMsg << "R" << cnt << " = " << Base::HEX8 << reg_norm[cnt] << " ";
statusMsg << "R" << std::dec << std::setfill(' ') << std::setw(2) << std::left << cnt
<< "= " << Base::HEX8 << reg_norm[cnt];
if((cnt + 1) % 4 == 0)
statusMsg << endl;
else
statusMsg << " ";
}
statusMsg << endl
<< "SP = " << Base::HEX8 << reg_norm[13] << " "
<< "LR = " << Base::HEX8 << reg_norm[14] << " "
<< "PC = " << Base::HEX8 << reg_norm[15] << " "
<< endl;
<< "PC = " << Base::HEX8 << reg_norm[15] << endl;
}
#endif