diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-06-11 23:09:57 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-06-11 23:09:57 -0700 |
commit | 5a8394fa5da42c6a9a5f12610cd1985268cb18db (patch) | |
tree | 7a5d65ed12adb69aa2a423040fdb1b9a180abb2c | |
parent | 69963a16375cb6f57a844bb59e281ec8756e92ee (diff) |
Bail out on attempt to run code from bank area until it is properly supported
-rw-r--r-- | z80_to_x86.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c index 827ceb0..f7b6d9e 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -1844,7 +1844,9 @@ void translate_z80_stream(z80_context * context, uint32_t address) 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) { |