diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-06-05 22:55:23 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-06-05 22:55:23 -0700 |
commit | a46bf513797ac2add7c50055b2a65f02ce311158 (patch) | |
tree | 72e1b2ace7dbc443e5d6c4b209ca37308616b986 /z80_to_x86.c | |
parent | dc31c21e66171750d6467ca62ecf3c1dfe09e58c (diff) |
Fix dec and inc when the operand is in memory
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r-- | z80_to_x86.c | 2 |
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: |