GNIDA.mediana.create_genreg_operand C# (CSharp) Method

create_genreg_operand() static private method

static private create_genreg_operand ( INSTRUCTION &instr, int op_index, byte code, OP_SIZE size, byte rex, INTERNAL_DATA &idata, DISMODE mode ) : void
instr INSTRUCTION
op_index int
code byte
size OP_SIZE
rex byte
idata INTERNAL_DATA
mode DISMODE
return void
        static void create_genreg_operand(ref INSTRUCTION instr, int op_index, byte code, OP_SIZE size, byte rex, ref INTERNAL_DATA idata, DISMODE mode)
        {
            if (mode == DISMODE.DISASSEMBLE_MODE_64 && idata.prefixes[PREF_REX_INDEX] != 0xFF)
            {
            if (code > REG_CODE_BX && size == OP_SIZE.OPERAND_SIZE_8)
            {
            code |= REG_CODE_64;
            code += 0x4;
            idata.is_rex_used = 1;
            }
            if ((instr.rex & rex)!=0)
            {
            code |= REG_CODE_64;
            idata.is_rex_used = 1;
            }
            }
            create_reg_operand(ref instr, op_index, REG_TYPE.REG_TYPE_GEN, code, size);
        }