diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-06-06 08:19:25 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-06-06 08:19:25 -0700 |
commit | d6b80c41a347fd74bd6b06c85b4b54b97a38d07e (patch) | |
tree | b8a78f758d877717bfbce9069bc110845a5470a6 /z80_to_x86.c | |
parent | a46bf513797ac2add7c50055b2a65f02ce311158 (diff) |
Fix LDD and LDDR
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r-- | z80_to_x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c index fe81e39..a313f8a 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -540,7 +540,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context dst = mov_rr(dst, opts->regs[Z80_HL], SCRATCH1, SZ_W); dst = call(dst, (uint8_t *)z80_read_byte); dst = mov_rr(dst, opts->regs[Z80_DE], SCRATCH2, SZ_W); - dst = call(dst, (uint8_t *)z80_read_byte); + dst = call(dst, (uint8_t *)z80_write_byte); dst = zcycles(dst, 2); dst = sub_ir(dst, 1, opts->regs[Z80_DE], SZ_W); dst = sub_ir(dst, 1, opts->regs[Z80_HL], SZ_W); @@ -555,7 +555,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context dst = mov_rr(dst, opts->regs[Z80_HL], SCRATCH1, SZ_W); dst = call(dst, (uint8_t *)z80_read_byte); dst = mov_rr(dst, opts->regs[Z80_DE], SCRATCH2, SZ_W); - dst = call(dst, (uint8_t *)z80_read_byte); + dst = call(dst, (uint8_t *)z80_write_byte); dst = sub_ir(dst, 1, opts->regs[Z80_DE], SZ_W); dst = sub_ir(dst, 1, opts->regs[Z80_HL], SZ_W); |