コード例 #1
0
 public static void PrettyPrint(StreamWriter writer, IInstruction x, bool printAddress = true)
 {
     if (printAddress)
     {
         writer.Write("{0} {1}: ", (x.Address).ToString("X").PadLeft(8, '0'), x.ToInteger().ToString("X").PadLeft(8, '0'));
     }
     PrettyPrinters[x.GetType()](x, writer);
 }
コード例 #2
0
 public static void PrettyPrint(StreamWriter writer, IInstruction x, bool printAddress=true)
 {
     if (printAddress)
         writer.Write("{0} {1}: ", (x.Address).ToString("X").PadLeft(8, '0'), x.ToInteger().ToString("X").PadLeft(8, '0'));
     PrettyPrinters[x.GetType()](x, writer);
 }