Debugger: 2.9.1.5 Added: Disassembly window now shows signed decimal values for immediate values.

This commit is contained in:
michaelangel007
2022-01-03 22:18:12 -08:00
parent aaae1dd6a1
commit 65ab105d76
8 changed files with 38 additions and 16 deletions
+12 -1
View File
@@ -1515,7 +1515,7 @@ WORD DrawDisassemblyLine ( int iLine, const WORD nBaseAddress )
}
// Address Seperator
// Address Seperator
if (! bCursorLine)
DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_OPERATOR ) );
@@ -1782,6 +1782,17 @@ WORD DrawDisassemblyLine ( int iLine, const WORD nBaseAddress )
}
}
// 2.9.1.4: Print decimal for immediate values
if (line.bTargetImmediate)
{
linerect.left = (int) aTabs[ TS_IMMEDIATE ];
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_OPERATOR ));
PrintTextCursorX( "#", linerect );
DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_SINT8 ));
PrintTextCursorX( line.sImmediateSignedDec, linerect);
}
// Immediate Char
if (bDisasmFormatFlags & DISASM_FORMAT_CHAR)
{