Exemplo n.º 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);
 }
Exemplo n.º 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);
 }