summaryrefslogtreecommitdiff
path: root/m68k_to_x86.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-26 18:20:23 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-26 18:20:23 -0800
commitf0d831f2b1e343592d0987dffdb5eb1064bd83ae (patch)
tree2f78d7ea659ba28e2f2ba741fb03704c25a8ea7e /m68k_to_x86.c
parent448658907c7a8f6caa8ea785d2eae8ea24471b30 (diff)
RTE doesn't crash the emulator anymore
Diffstat (limited to 'm68k_to_x86.c')
-rw-r--r--m68k_to_x86.c3
1 files changed, 3 insertions, 0 deletions
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;