From 7b8127d36a9c6a824da4f1709bdee12c40c631a5 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 19 Dec 2016 13:28:18 -0800 Subject: Mostly working changes to allow support for multiple emulated system types in main blastem program --- m68k_core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'm68k_core.h') diff --git a/m68k_core.h b/m68k_core.h index 277a2e5..4d3634e 100644 --- a/m68k_core.h +++ b/m68k_core.h @@ -72,6 +72,7 @@ typedef struct m68k_context { } m68k_context; typedef m68k_context *(*m68k_reset_handler)(m68k_context *context); +typedef m68k_context *(*m68k_debug_handler)(m68k_context *context, uint32_t pc); void translate_m68k_stream(uint32_t address, m68k_context * context); void start_68k_context(m68k_context * context, uint32_t address); @@ -80,7 +81,7 @@ void init_m68k_opts(m68k_options * opts, memmap_chunk * memmap, uint32_t num_chu m68k_context * init_68k_context(m68k_options * opts, m68k_reset_handler reset_handler); void m68k_reset(m68k_context * context); void m68k_options_free(m68k_options *opts); -void insert_breakpoint(m68k_context * context, uint32_t address, uint8_t * bp_handler); +void insert_breakpoint(m68k_context * context, uint32_t address, m68k_debug_handler bp_handler); void remove_breakpoint(m68k_context * context, uint32_t address); m68k_context * m68k_handle_code_write(uint32_t address, m68k_context * context); uint32_t get_instruction_start(m68k_options *opts, native_map_slot * native_code_map, uint32_t address); -- cgit v1.2.3