case MOV_IMM2:{
uint8_t reg_code = 0;
- instr->dst_operand.size = operand_width;
-
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->dst_operand), ®_code);
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->dst_operand), ®_code);
if (ret == -1) {
PrintError("Error decoding operand\n");
case MOV_2MEM: {
uint8_t reg_code = 0;
- instr->dst_operand.size = operand_width;
-
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->dst_operand), ®_code);
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->dst_operand), ®_code);
if (ret == -1) {
PrintError("Error decoding operand\n");
case XOR_MEM2:
case MOV_MEM2: {
uint8_t reg_code = 0;
- instr->src_operand.size = operand_width;
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->src_operand), ®_code);
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->src_operand), ®_code);
if (ret == -1) {
PrintError("Error decoding operand\n");
case SUB_IMM2SX_8:
case XOR_IMM2SX_8: {
uint8_t reg_code = 0;
- instr->src_operand.size = operand_width;
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->src_operand), ®_code);
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->src_operand), ®_code);
if (ret == -1) {
PrintError("Error decoding operand\n");
case MOV_2CR: {
uint8_t reg_code = 0;
- instr->src_operand.size = operand_width;
-
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->src_operand),
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->src_operand),
®_code);
if (ret == -1) {
case MOV_CR2: {
uint8_t reg_code = 0;
- instr->dst_operand.size = operand_width;
-
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->dst_operand),
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->dst_operand),
®_code);
if (ret == -1) {
// We use the dst operand here to maintain bug-for-bug compatibility with XED
- instr->dst_operand.size = operand_width;
-
- ret = decode_rm_operand(core, instr_ptr, instr, &(instr->dst_operand), ®_code);
+ ret = decode_rm_operand(core, instr_ptr, form, instr, &(instr->dst_operand), ®_code);
if (ret == -1) {
PrintError("Error decoding operand for (%s)\n", op_form_to_str(form));