From e6216d5d0a9f8cdb700124558d38cd47e63fbdda Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 3 Jan 2015 18:23:04 -0800 Subject: Made the Z80 core more contained by refactoring some code in blastem.c into z80_to_x86.c --- blastem.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 46d0b1b..cd75b64 100644 --- a/blastem.h +++ b/blastem.h @@ -19,8 +19,6 @@ #define RAM_FLAG_EVEN 0x1000 #define RAM_FLAG_BOTH 0x0000 -#define CYCLE_NEVER 0xFFFFFFFF - typedef struct { m68k_context *m68k; z80_context *z80; @@ -42,8 +40,6 @@ extern int headless; extern int break_on_sync; extern int save_state; extern tern_node * config; -extern uint8_t busreq; -extern uint8_t reset; #define CARTRIDGE_WORDS 0x200000 #define RAM_WORDS 32 * 1024 -- cgit v1.2.3 From 89ca3bce585f06927569ed1f18ad433d33e320e9 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 5 May 2015 08:42:27 -0700 Subject: Added config option to allow specifying a max sync cycle smaller than the end of frame --- blastem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index cd75b64..680fc73 100644 --- a/blastem.h +++ b/blastem.h @@ -30,6 +30,8 @@ typedef struct { uint32_t save_flags; uint32_t master_clock; //Current master clock value uint32_t normal_clock; //Normal master clock (used to restore master clock after turbo mode) + uint32_t frame_end; + uint32_t max_cycles; uint8_t bank_regs[8]; io_port ports[3]; uint8_t bus_busy; -- cgit v1.2.3 From b88dc02ba056c2b5891b1bb062a2ad44df5df544 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 14 May 2015 00:04:22 -0700 Subject: Sync machine state before entering debugger --- blastem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 680fc73..23c62dd 100644 --- a/blastem.h +++ b/blastem.h @@ -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); -- cgit v1.2.3