changeset 387:582a68a90708

Fix dec and inc when the operand is in memory
author Mike Pavone <pavone@retrodev.com>
date Wed, 05 Jun 2013 22:55:23 -0700
parents 6e5c4f3ab0e2
children 228e4c696317
files z80_to_x86.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/z80_to_x86.c	Wed Jun 05 19:26:02 2013 -0700
+++ b/z80_to_x86.c	Wed Jun 05 22:55:23 2013 -0700
@@ -817,6 +817,7 @@
 		}
 		dst = z80_save_reg(dst, inst, opts);
 		dst = z80_save_ea(dst, inst, opts);
+		dst = z80_save_result(dst, inst);
 		break;
 	case Z80_DEC:
 		cycles = 4;
@@ -842,6 +843,7 @@
 		}
 		dst = z80_save_reg(dst, inst, opts);
 		dst = z80_save_ea(dst, inst, opts);
+		dst = z80_save_result(dst, inst);
 		break;
 	//case Z80_DAA:
 	case Z80_CPL: