Skip to content
Snippets Groups Projects
Commit 31312619 authored by clc5q's avatar clc5q
Browse files

Convert USE reg from EAX+EDX to just EAX for div, idiv, and mul opcodes when...

Convert USE reg from EAX+EDX to just EAX for div, idiv, and mul opcodes when initializing operands from BeaEngine operands.

Former-commit-id: 54beef30ac938c04de50539ba291faa96a097924
parent cfd29562
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
#include "interfaces/irdb/STARSOp.h"
#include "interfaces/STARSTypes.h"
#include <libIRDB-core.hpp>
using namespace std;
using namespace libIRDB;
......@@ -1556,6 +1557,15 @@ bool STARS_IRDB_Instruction_t::STARS_GetCmd(void)
break;
}
case STARS_NN_div:
case STARS_NN_idiv:
case STARS_NN_mul:
{
// If beaEngine has EAX+EDX as arg1, make it just EAX like IDA Pro.
if (this->disasm.Argument1.ArgType == REGISTER_TYPE + GENERAL_REG + REG0 + REG2)
this->disasm.Argument1.ArgType = REGISTER_TYPE + GENERAL_REG + REG0;
do_default = true;
}
default:
do_default=true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment