Skip to content

Commit

Permalink
Show colour key at both start and end of debugger map command
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Nov 28, 2023
1 parent 2a0d119 commit a1243bf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,18 @@ private void CommandMapMemory(string[] command)
Console.ResetColor();
return;
}
Console.ForegroundColor = ConsoleColor.Blue;
Console.Write(Strings.Generic_Register_rpo);
Console.ResetColor();
Console.Write(Strings.Generic_CommaSeparate);
Console.ForegroundColor = ConsoleColor.Red;
Console.Write(Strings.Generic_Register_rsb);
Console.ResetColor();
Console.Write(Strings.Generic_CommaSeparate);
Console.ForegroundColor = ConsoleColor.Green;
Console.Write(Strings.Generic_Register_rso);
Console.ResetColor();
Console.WriteLine();
Console.Write(Strings.Debugger_MemoryMap_Header);
ulong start = offset - (offset % 16); // Ensure offset is a multiple of 16
ulong end = (ulong)DebuggingProcessor.Memory.LongLength < (limit + start) ? (ulong)DebuggingProcessor.Memory.LongLength : (limit + start);
Expand Down

0 comments on commit a1243bf

Please sign in to comment.