diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-05-14 00:04:22 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-05-14 00:04:22 -0700 |
commit | b88dc02ba056c2b5891b1bb062a2ad44df5df544 (patch) | |
tree | e4f449b51b61ad539556e32052594e1ec2556273 | |
parent | 9ad6463d0b731c4afda4fceb9a9683e2f65e14f5 (diff) |
Sync machine state before entering debugger
-rw-r--r-- | blastem.h | 1 | ||||
-rw-r--r-- | debug.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -52,6 +52,7 @@ extern uint16_t ram[RAM_WORDS]; 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); @@ -471,6 +471,7 @@ m68k_context * debugger(m68k_context * context, uint32_t address) 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) { |