x86.cs: identify PUSH vs UPUSH
This commit is contained in:
parent
7d3381568a
commit
5786212989
1 changed files with 2 additions and 1 deletions
|
|
@ -411,11 +411,12 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) {
|
|||
esilprintf (op, "%d,%s,-=,%s,%s,=[%d]", rs, sp, dst, sp, rs);
|
||||
free (dst);
|
||||
}
|
||||
op->type = R_ANAL_OP_TYPE_PUSH;
|
||||
switch (INSOP(0).type) {
|
||||
case X86_OP_IMM:
|
||||
op->ptr = INSOP(0).imm;
|
||||
op->type = R_ANAL_OP_TYPE_PUSH;
|
||||
default:
|
||||
op->type = R_ANAL_OP_TYPE_UPUSH;
|
||||
break;
|
||||
}
|
||||
op->stackop = R_ANAL_STACK_INC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue