Example #1
0
 public bool DumpAssemblerLine(LoadedImage image, MachineInstruction instr, TextWriter writer)
 {
     Address addrBegin = instr.Address;
     if (ShowAddresses)
         writer.Write("{0} ", addrBegin);
     if (ShowCodeBytes)
     {
         StringWriter sw = new StringWriter();
         WriteByteRange(image, instr.Address, instr.Address + instr.Length, sw);
         writer.WriteLine("{0,-16}\t{1}", sw.ToString(), instr);
     }
     else
     {
         writer.WriteLine("\t{0}", instr.ToString());
     }
     return true;
 }