diff z80_to_x86.c @ 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 e45327305bb7
children 228e4c696317
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: