diff m68k_to_x86.c @ 560:f9431cb3a39c

Fix x86_rrindex_sizedir. Pass the correct scale to mov_rindexr in gen_mem_fun. BlastEm now sort of works on OS X. Runs reliably from lldb, but only intermittently from the shell
author Mike Pavone <pavone@retrodev.com>
date Mon, 23 Jun 2014 11:05:55 -0400
parents 6b248602ab84
children 666adeba5a61
line wrap: on
line diff
--- a/m68k_to_x86.c	Tue Jun 17 01:50:29 2014 -0400
+++ b/m68k_to_x86.c	Mon Jun 23 11:05:55 2014 -0400
@@ -4499,7 +4499,7 @@
 						dst = mov_rrind(dst, SCRATCH1, SCRATCH2, tmp_size);
 					} else {
 						dst = mov_ir(dst, (intptr_t)memmap[chunk].buffer, SCRATCH2, SZ_PTR);
-						dst = mov_rindexr(dst, SCRATCH2, SCRATCH1, 1, SCRATCH1, tmp_size);
+						dst = mov_rindexr(dst, SCRATCH2, SCRATCH1, 0, SCRATCH1, tmp_size);
 					}
 				}
 				if (size != tmp_size && !is_write) {