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); }
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); }