From 3faebceece9d2d6607699d2d17e026597b246003 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Fri, 28 Dec 2012 21:25:00 -0800 Subject: Fix call_r in gen_x86 so that it properly returns a pointer to the location after the generated instruction --- gen_x86.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gen_x86.c') diff --git a/gen_x86.c b/gen_x86.c index 23dbba5..e7817d8 100644 --- a/gen_x86.c +++ b/gen_x86.c @@ -1264,6 +1264,7 @@ uint8_t * call_r(uint8_t * out, uint8_t dst) { *(out++) = OP_SINGLE_EA; *(out++) = MODE_REG_DIRECT | dst | (OP_EX_CALL_EA << 3); + return out; } uint8_t * retn(uint8_t * out) -- cgit v1.2.3