changeset 394:d5f1840273b5

Bail out on attempt to run code from bank area until it is properly supported
author Mike Pavone <pavone@retrodev.com>
date Tue, 11 Jun 2013 23:09:57 -0700
parents 30c250a41629
children 0b5f93358a93
files z80_to_x86.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/z80_to_x86.c	Sun Jun 09 02:38:56 2013 -0700
+++ b/z80_to_x86.c	Tue Jun 11 23:09:57 2013 -0700
@@ -1844,7 +1844,9 @@
 	if (address < 0x4000) {
 		encoded = context->mem_pointers[0] + (address & 0x1FFF);
 	} else if(address >= 0x8000 && context->mem_pointers[1]) {
-		encoded = context->mem_pointers[1] + (address & 0x7FFF);
+		printf("attempt to translate Z80 code from banked area at address %X\n", address);
+		exit(1);
+		//encoded = context->mem_pointers[1] + (address & 0x7FFF);
 	}
 	while (encoded != NULL)
 	{