diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-12-19 13:28:18 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-12-19 13:28:18 -0800 |
commit | 7b8127d36a9c6a824da4f1709bdee12c40c631a5 (patch) | |
tree | 33d0e6914620deaee1296f1672091c5b79793778 /m68k_core.h | |
parent | 11861fca5815015b2afb712f328195c5f7bc231e (diff) |
Mostly working changes to allow support for multiple emulated system types in main blastem program
Diffstat (limited to 'm68k_core.h')
-rw-r--r-- | m68k_core.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |