mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-05 21:17:07 +00:00
x86 esil: add NEG opcode (#4731)
This commit is contained in:
parent
60de2dc6b4
commit
73af2ed183
@ -1085,6 +1085,15 @@ Sets the byte in the operand to 1 if the Sign Flag is not equal
|
||||
free (dst);
|
||||
}
|
||||
break;
|
||||
case X86_INS_NEG:
|
||||
{
|
||||
char *src = getarg (&gop, 0, 0, NULL);
|
||||
char *dst = getarg(&gop, 0, 1, NULL);
|
||||
esilprintf (op, "0,cf,=,0,%s,>,?{,1,cf,=,},%s,0,-,%s,$z,zf,=,0,of,=,$s,sf,=,$o,pf,=", src, src, dst);
|
||||
free (src);
|
||||
free (dst);
|
||||
}
|
||||
break;
|
||||
case X86_INS_NOT:
|
||||
{
|
||||
char *dst = getarg (&gop, 0, 1, "^");
|
||||
@ -1822,6 +1831,10 @@ static void anop (RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len, csh
|
||||
op->type = R_ANAL_OP_TYPE_SUB;
|
||||
op->val = 1;
|
||||
break;
|
||||
case X86_INS_NEG:
|
||||
op->type = R_ANAL_OP_TYPE_SUB;
|
||||
op->family = R_ANAL_OP_FAMILY_CPU;
|
||||
break;
|
||||
case X86_INS_NOT:
|
||||
op->type = R_ANAL_OP_TYPE_NOT;
|
||||
op->family = R_ANAL_OP_FAMILY_CPU;
|
||||
|
Loading…
x
Reference in New Issue
Block a user