Debugger: Small bug fixes
This commit is contained in:
parent
5db212c98c
commit
81c24d9e8f
3 changed files with 7 additions and 3 deletions
|
@ -96,7 +96,7 @@ DisassemblyInfo::DisassemblyInfo(uint8_t* opPointer, bool isSubEntryPoint)
|
|||
byteCodeOutput.reserve(10);
|
||||
for(uint32_t i = 0; i < 3; i++) {
|
||||
if(i < _opSize) {
|
||||
byteCodeOutput += "$" + HexUtilities::ToHex((uint16_t)*(_opPointer + i));
|
||||
byteCodeOutput += "$" + HexUtilities::ToHex((uint8_t)*(_opPointer + i));
|
||||
} else {
|
||||
byteCodeOutput += " ";
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ namespace Mesen.GUI.Debugger
|
|||
|
||||
if(lineParts.Length >= 4) {
|
||||
lineNumbers.Add(ParseHexAddress(lineParts[0]));
|
||||
lineNumberNotes.Add(lineParts[1]);
|
||||
lineNumberNotes.Add(lineParts[1].Trim('0'));
|
||||
codeNotes.Add(lineParts[2]);
|
||||
codeLines.Add(lineParts[3]);
|
||||
}
|
||||
|
|
|
@ -69,7 +69,11 @@ namespace Mesen.GUI.Debugger.Controls
|
|||
CodeLabel label = LabelManager.GetLabel((UInt32)entryPoint, AddressType.PrgRom);
|
||||
item = lstFunctions.Items.Add(label?.Label);
|
||||
item.Tag = -1;
|
||||
item.SubItems.Add("");
|
||||
|
||||
item.SubItems.Add("[n/a]");
|
||||
item.ForeColor = Color.Gray;
|
||||
item.Font = new Font(item.Font, FontStyle.Italic);
|
||||
|
||||
item.SubItems.Add("$" + entryPoint.ToString("X4"));
|
||||
item.SubItems[2].Tag = entryPoint;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue