Mercurial > repos > blastem
changeset 707:8aa9aacefe12
Sync machine state before entering debugger
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 14 May 2015 00:04:22 -0700 |
parents | 0a6dea8c8083 |
children | 61faa298af07 |
files | blastem.h debug.c |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/blastem.h Wed May 13 23:55:02 2015 -0700 +++ b/blastem.h Thu May 14 00:04:22 2015 -0700 @@ -52,6 +52,7 @@ extern uint8_t z80_ram[Z80_RAM_BYTES]; uint16_t read_dma_value(uint32_t address); +m68k_context * sync_components(m68k_context *context, uint32_t address); m68k_context * debugger(m68k_context * context, uint32_t address); void set_speed_percent(genesis_context * context, uint32_t percent);
--- a/debug.c Wed May 13 23:55:02 2015 -0700 +++ b/debug.c Thu May 14 00:04:22 2015 -0700 @@ -471,6 +471,7 @@ static uint32_t branch_t; static uint32_t branch_f; m68kinst inst; + sync_components(context, 0); //probably not necessary, but let's play it safe address &= 0xFFFFFF; if (address == branch_t) {