changeset 397:c20607e5b272

Fix LDIR
author Mike Pavone <pavone@retrodev.com>
date Thu, 13 Jun 2013 22:23:15 -0700
parents 09328dbe6700
children c26e48a93fa3
files z80_to_x86.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/z80_to_x86.c	Tue Jun 11 23:36:18 2013 -0700
+++ b/z80_to_x86.c	Thu Jun 13 22:23:15 2013 -0700
@@ -517,7 +517,7 @@
 		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);