GNIDA.mediana.parse_rm_operand C# (CSharp) Method

parse_rm_operand() static private method

static private parse_rm_operand ( long origin_offset, long offset, INSTRUCTION &instr, int op_index, OPERAND_SIZE opsize, INTERNAL_DATA &idata, DISMODE mode ) : UInt32
origin_offset long
offset long
instr INSTRUCTION
op_index int
opsize OPERAND_SIZE
idata INTERNAL_DATA
mode DISMODE
return UInt32
        static UInt32 parse_rm_operand(long origin_offset, long  offset, ref INSTRUCTION instr, int op_index, OPERAND_SIZE opsize, ref INTERNAL_DATA idata, DISMODE mode)
        {
            UInt32 len = 0;

            if ((instr.modrm & 0xC0) == 0xC0)
            {
            create_genreg_operand(ref instr, op_index, (byte)(instr.modrm & 0x7), opsize.size, PREFIX_REX_B, ref idata, mode);
            }
            else
            {
            len = parse_mem_operand(origin_offset, offset, ref instr, op_index, opsize, idata, mode);
            }

            return len;
        }