Exemple #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);
        }
Exemple #2
0
 /// <summary>
 /// Render the Reko machine instruction <paramref name="i"/> the
 /// way LLVM does.
 /// </summary>
 public virtual string RenderAsLlvm(MachineInstruction i)
 {
     return(i.ToString());
 }
Exemple #3
0
 public override string RenderAsLlvm(MachineInstruction i)
 {
     return(i.ToString());
 }
Exemple #4
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;
 }