SharpDisasm/Translators/Translator.cs
/// <summary>
/// Writes the address of the instruction to <see cref="Content"/>. The width of the address is determined by the <see cref="ArchitectureMode"/> used during disassembly.
/// </summary>
/// <param name="insn">The instruction to append the address of.</param>
Writes the address of the instruction to . The width of the address is determined by the  used during disassembly.
Writes the address of the instruction to . The width of the address is determined by the used during disassembly .
protected void WriteAddress(Instruction insn)
        {
            switch (insn.dis_mode)
            {
                case ArchitectureMode.x86_16:
                    Content.AppendFormat("{0:x4} ", insn.Offset);
                    break;
                case ArchitectureMode.x86_32:
                    Content.AppendFormat("{0:x8} ", insn.Offset);
                    break;
                case ArchitectureMode.x86_64:
                    Content.AppendFormat("{0:x16} ", insn.Offset);
                    break;
            }
        }
protected void WriteAddress ( Instruction insn ) { switch ( insn . dis_mode ) { case ArchitectureMode . x86_16 : Content . AppendFormat ( " " , insn . Offset ) ; break ; case ArchitectureMode . x86_32 : Content . AppendFormat ( " " , insn . Offset ) ; break ; case ArchitectureMode . x86_64 : Content . AppendFormat ( " " , insn . Offset ) ; break ; } }
Writes the address of the instruction to .
Writes the address of the instruction to .
insn
Instruction
The instruction to append the address of.
The instruction to append the address of .