summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-06-13 22:23:15 -0700
committerMike Pavone <pavone@retrodev.com>2013-06-13 22:23:15 -0700
commit176fd949e121edcea17af0907198cfb8d8250d28 (patch)
tree84a1e635db5f93a40be6d2846c7b1fef000c8d9a
parent0e8c85b38592b96bd446ae7eee73f9b8d376f7a4 (diff)
Fix LDIR
-rw-r--r--z80_to_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index f7b6d9e..9030944 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -517,7 +517,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 = add_ir(dst, 1, opts->regs[Z80_DE], SZ_W);
dst = add_ir(dst, 1, opts->regs[Z80_HL], SZ_W);