summaryrefslogtreecommitdiff
path: root/gen_x86.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-28 21:25:00 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-28 21:25:00 -0800
commit3faebceece9d2d6607699d2d17e026597b246003 (patch)
treebdd2c4fc65f084b0a6324287fe100c319113bae3 /gen_x86.c
parentf416b0845a1e16b19e9f1149e6207cd45841296c (diff)
Fix call_r in gen_x86 so that it properly returns a pointer to the location after the generated instruction
Diffstat (limited to 'gen_x86.c')
-rw-r--r--gen_x86.c1
1 files changed, 1 insertions, 0 deletions
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)