# HG changeset patch # User Mike Pavone # Date 1370498123 25200 # Node ID 582a68a90708554c4b80d2ec79f2c3da100d6e0b # Parent 6e5c4f3ab0e2134cbd0201e087f78ea6b7a96002 Fix dec and inc when the operand is in memory diff -r 6e5c4f3ab0e2 -r 582a68a90708 z80_to_x86.c --- 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: