SharpDisasm/Translators/Translator.cs
/// <summary>
/// Converts a <see cref="SharpDisasm.Udis86.ud_type"/> into an index into <see cref="Registers"/> and returns the result.
/// </summary>
/// <param name="type">The register <see cref="SharpDisasm.Udis86.ud_type"/> to retrieve the corresponding string for. Note: only the UD_R_* types will result in a valid index.</param>
/// <returns>The corresponding string value for the register.</returns>
Converts a  into an index into  and returns the result.
Converts a into an index into and returns the result .
protected string RegisterForType(SharpDisasm.Udis86.ud_type type)
        {
            int indx = (type - SharpDisasm.Udis86.ud_type.UD_R_AL);
            return Registers[indx];
        }
protected string RegisterForType ( SharpDisasm . Udis86 . ud_type type ) { int indx = ( type - SharpDisasm . Udis86 . ud_type . UD_R_AL ) ; return Registers [ indx ] ; }
Converts a  into an index into  and returns the result.
Converts a into an index into and returns the result .
// Adjust to be zero based (i.e. the first register in ud_type starts at 1 == UD_R_AL)
The corresponding string value for the register.
The corresponding string value for the register .
type
SharpDisasm.Udis86.ud_type
The register  to retrieve the corresponding string for. Note: only the UD_R_* types will result in a valid index.
The register to retrieve the corresponding string for . Note : only the UD_R_ * types will result in a valid index .