Mercurial > repos > blastem
diff debug.c @ 2676:7e86ec94c899
Implement breakpoints in new 68K core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 15 Mar 2025 23:15:05 -0700 |
parents | 54ac5fe14cf9 |
children | c4256ce2c45a |
line wrap: on
line diff
--- a/debug.c Fri Mar 14 01:18:11 2025 -0700 +++ b/debug.c Sat Mar 15 23:15:05 2025 -0700 @@ -5559,11 +5559,12 @@ #endif -void debugger(m68k_context * context, uint32_t address) +void debugger(void *vcontext, uint32_t address) { static char last_cmd[1024]; char input_buf[1024]; m68kinst inst; + m68k_context *context = vcontext; init_terminal(); @@ -5656,11 +5657,9 @@ genesis_context *gen = context->system; vdp_force_update_framebuffer(gen->vdp); } -#ifndef NEW_CORE uint32_t after = m68k_decode(m68k_instruction_fetch, context, &inst, address); root->after = after; root->inst = &inst; -#endif for (disp_def * cur = root->displays; cur; cur = cur->next) { char format_str[8]; make_format_str(format_str, cur->format);