static void create_reg_operand(ref INSTRUCTION instr, int op_index, REG_TYPE type, byte code, OP_SIZE size) { instr.ops[op_index].flags |= (byte)OP_TYPE.OPERAND_TYPE_REG; instr.ops[op_index].value.reg.type = type; instr.ops[op_index].value.reg.code = code; instr.ops[op_index].size = (ushort)size; }