Esil equivalent of x86 cmp instruction now set the overflow flag. (#5851)

This commit is contained in:
Markus Lottmann 2016-09-26 13:03:08 +02:00 committed by radare
parent 59bf09a66a
commit 8abffec384

View File

@ -732,7 +732,7 @@ static void anop_esil (RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len
} else {
char *src = getarg (&gop, 1, 0, NULL);
char *dst = getarg (&gop, 0, 0, NULL);
esilprintf (op, "%s,%s,==,$z,zf,=,$b%d,cf,=,$p,pf,=,$s,sf,=",
esilprintf (op, "%s,%s,==,$z,zf,=,$b%d,cf,=,$p,pf,=,$s,sf,=,$o,of,=",
src, dst, (INSOP(0).size*8));
free (src);
free (dst);