コード例 #1
0
        public bool DumpAssemblerLine(MemoryArea mem, MachineInstruction instr, TextWriter writer)
        {
            Address addrBegin = instr.Address;

            if (ShowAddresses)
            {
                writer.Write("{0} ", addrBegin);
            }
            if (ShowCodeBytes)
            {
                StringWriter sw = new StringWriter();
                WriteByteRange(mem, 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);
        }
コード例 #2
0
ファイル: InstrRenderer.cs プロジェクト: uxmal/reko-extras
 /// <summary>
 /// Render the Reko machine instruction <paramref name="i"/> the
 /// way LLVM does.
 /// </summary>
 public virtual string RenderAsLlvm(MachineInstruction i)
 {
     return(i.ToString());
 }
コード例 #3
0
 public override string RenderAsLlvm(MachineInstruction i)
 {
     return(i.ToString());
 }
コード例 #4
0
ファイル: Dumper.cs プロジェクト: killbug2004/reko
 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;
 }