Mercurial > repos > blastem
diff m68k_core.h @ 1111:2eb54e24914e
Mostly working changes to allow support for multiple emulated system types in main blastem program
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 19 Dec 2016 13:28:18 -0800 |
parents | c15896605bf2 |
children | 8f14767661fa |
line wrap: on
line diff
--- a/m68k_core.h Wed Dec 14 23:27:42 2016 -0800 +++ b/m68k_core.h Mon Dec 19 13:28:18 2016 -0800 @@ -72,6 +72,7 @@ } 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 @@ 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);