GNIDA.mediana.get_mod_type_modrm C# (CSharp) Method

get_mod_type_modrm() static private method

static private get_mod_type_modrm ( INSTRUCTION &instr, int op_index ) : void
instr INSTRUCTION
op_index int
return void
        static void get_mod_type_modrm(ref INSTRUCTION instr, int op_index)
        {
            if (instr.ops[op_index].value.addr.mod != 0x0)
            {
            instr.ops[op_index].value.addr.mod = (byte)(ADDR_MOD_BASE | ADDR_MOD_DISP);
            }
            else
            {
            if ((instr.ops[op_index].value.addr.bas == REG_CODE_BP) || (instr.ops[op_index].value.addr.bas == REG_CODE_R13))
            {
            instr.ops[op_index].value.addr.mod = ADDR_MOD_DISP;
            }
            else
            {
            instr.ops[op_index].value.addr.mod = ADDR_MOD_BASE;
            }
            }
        }