Mercurial > repos > blastem
view debug.h @ 1305:5ceb316c479a
Allow games to be specified in ROM DB via sha1 instead of product ID. Added a new ROM DB memory map device type fixed for emulating simple fixed value copy protection registers. Used those two features to support Ya Se Chuan Shuo via a ROM DB entry.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Mar 2017 00:29:44 -0700 |
parents | 6b5c92b6205c |
children | 85a90964b557 |
line wrap: on
line source
#ifndef DEBUG_H_ #define DEBUG_H_ #include <stdint.h> #include "m68k_core.h" #include "z80_to_x86.h" typedef struct disp_def { struct disp_def * next; char * param; uint32_t index; char format_char; } disp_def; typedef struct bp_def { struct bp_def *next; char *commands; uint32_t address; uint32_t index; } bp_def; bp_def ** find_breakpoint(bp_def ** cur, uint32_t address); bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index); void add_display(disp_def ** head, uint32_t *index, char format_char, char * param); void remove_display(disp_def ** head, uint32_t index); m68k_context * debugger(m68k_context * context, uint32_t address); z80_context * zdebugger(z80_context * context, uint16_t address); #endif //DEBUG_H_