comparison debug.h @ 2720:7dcc84cb14ee

Get uPD78K/II partially hooked up in debugger
author Michael Pavone <pavone@retrodev.com>
date Wed, 16 Jul 2025 19:26:38 -0700
parents 7e86ec94c899
children
comparison
equal deleted inserted replaced
2719:f817aedf5e53 2720:7dcc84cb14ee
8 #include "z80.h" 8 #include "z80.h"
9 #else 9 #else
10 #include "m68k_core.h" 10 #include "m68k_core.h"
11 #include "z80_to_x86.h" 11 #include "z80_to_x86.h"
12 #endif 12 #endif
13 #include "upd78k2.h"
13 #include "disasm.h" 14 #include "disasm.h"
14 15
15 typedef enum { 16 typedef enum {
16 TOKEN_NONE, 17 TOKEN_NONE,
17 TOKEN_INT, 18 TOKEN_INT,
213 }; 214 };
214 215
215 debug_root *find_root(void *cpu); 216 debug_root *find_root(void *cpu);
216 debug_root *find_m68k_root(m68k_context *context); 217 debug_root *find_m68k_root(m68k_context *context);
217 debug_root *find_z80_root(z80_context *context); 218 debug_root *find_z80_root(z80_context *context);
219 debug_root *find_upd_root(upd78k2_context *upd);
218 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address, uint8_t type); 220 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address, uint8_t type);
219 bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index); 221 bp_def ** find_breakpoint_idx(bp_def ** cur, uint32_t index);
220 void add_display(disp_def ** head, uint32_t *index, char format_char, char * param); 222 void add_display(disp_def ** head, uint32_t *index, char format_char, char * param);
221 void remove_display(disp_def ** head, uint32_t index); 223 void remove_display(disp_def ** head, uint32_t index);
222 void debugger(void * vcontext, uint32_t address); 224 void debugger(void * vcontext, uint32_t address);
223 z80_context * zdebugger(z80_context * context, uint16_t address); 225 z80_context * zdebugger(z80_context * context, uint16_t address);
226 void upd_debugger(upd78k2_context *upd);
224 void print_m68k_help(); 227 void print_m68k_help();
225 void print_z80_help(); 228 void print_z80_help();
226 229
227 #endif //DEBUG_H_ 230 #endif //DEBUG_H_