changeset 117:fb7944d3ed5c

Fix call_r in gen_x86 so that it properly returns a pointer to the location after the generated instruction
author Mike Pavone <pavone@retrodev.com>
date Fri, 28 Dec 2012 21:25:00 -0800
parents 9eaba47c429d
children d9ff99ef5533
files gen_x86.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gen_x86.c	Fri Dec 28 21:20:14 2012 -0800
+++ b/gen_x86.c	Fri Dec 28 21:25:00 2012 -0800
@@ -1264,6 +1264,7 @@
 {
 	*(out++) = OP_SINGLE_EA;
 	*(out++) = MODE_REG_DIRECT | dst | (OP_EX_CALL_EA << 3);
+	return out;
 }
 
 uint8_t * retn(uint8_t * out)