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