Oops, the disassembly output should align based on the length of the

entire disassembled text, not just the label length.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2043 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-06-05 01:23:39 +00:00
parent ffae9a0d56
commit cd34147f5e
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ string CartDebug::disassemble(uInt16 start, uInt16 lines) const
if((tag.address & 0xfff) >= start)
{
if(begin == 0) begin = end;
length = BSPF_max(length, (uInt32)tag.label.length());
length = BSPF_max(length, (uInt32)tag.disasm.length());
--lines;
}
@ -301,7 +301,7 @@ string CartDebug::disassemble(uInt16 start, uInt16 lines) const
{
const CartDebug::DisassemblyTag& tag = disasm.list[i];
buffer << uppercase << hex << setw(4) << setfill('0') << tag.address
<< ": " << tag.disasm << setw(length - tag.disasm.length() + 10)
<< ": " << tag.disasm << setw(length - tag.disasm.length() + 1)
<< setfill(' ') << " "
<< tag.ccount << " " << tag.bytes << endl;
}