From f0d831f2b1e343592d0987dffdb5eb1064bd83ae Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 26 Dec 2012 18:20:23 -0800 Subject: RTE doesn't crash the emulator anymore --- m68k_to_x86.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm68k_to_x86.c') diff --git a/m68k_to_x86.c b/m68k_to_x86.c index d53f98b..7a7a90c 100644 --- a/m68k_to_x86.c +++ b/m68k_to_x86.c @@ -479,6 +479,9 @@ uint8_t * m68k_save_result(m68kinst * inst, uint8_t * out, x86_68k_options * opt uint8_t * get_native_address(native_map_slot * native_code_map, uint32_t address) { address &= 0xFFFFFF; + if (address > 0x400000) { + printf("get_native_address: %X\n", address); + } uint32_t chunk = address / NATIVE_CHUNK_SIZE; if (!native_code_map[chunk].base) { return NULL; -- cgit v1.2.3