summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-06-05 22:55:23 -0700
committerMike Pavone <pavone@retrodev.com>2013-06-05 22:55:23 -0700
commita46bf513797ac2add7c50055b2a65f02ce311158 (patch)
tree72e1b2ace7dbc443e5d6c4b209ca37308616b986
parentdc31c21e66171750d6467ca62ecf3c1dfe09e58c (diff)
Fix dec and inc when the operand is in memory
-rw-r--r--z80_to_x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index 46e75de..fe81e39 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -817,6 +817,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
}
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 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
}
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: