From dd774975c0ba188b8d18d97e931a625f4e491f21 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 2 Jan 2017 23:35:40 -0800 Subject: Invalidate translated code on a cartridge bank change in SMS mode. Fix handling of bank 0 --- z80_to_x86.h | 1 + 1 file changed, 1 insertion(+) (limited to 'z80_to_x86.h') diff --git a/z80_to_x86.h b/z80_to_x86.h index 4dcfdc3..e26777c 100644 --- a/z80_to_x86.h +++ b/z80_to_x86.h @@ -94,6 +94,7 @@ z80_context * init_z80_context(z80_options * options); code_ptr z80_get_native_address(z80_context * context, uint32_t address); code_ptr z80_get_native_address_trans(z80_context * context, uint32_t address); z80_context * z80_handle_code_write(uint32_t address, z80_context * context); +void z80_invalidate_code_range(z80_context *context, uint32_t start, uint32_t end); void z80_reset(z80_context * context); void zinsert_breakpoint(z80_context * context, uint16_t address, uint8_t * bp_handler); void zremove_breakpoint(z80_context * context, uint16_t address); -- cgit v1.2.3