From 28b8256fddf53446898120f9b51a43f132d946bb Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 10 Jul 2013 09:38:05 -0700 Subject: Add config file parser and default config file --- blastem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 63571d2..635794d 100644 --- a/blastem.h +++ b/blastem.h @@ -8,6 +8,7 @@ #include "vdp.h" #include "psg.h" #include "io.h" +#include "config.h" #define RAM_FLAG_ODD 0x1800 #define RAM_FLAG_EVEN 0x1000 @@ -30,6 +31,7 @@ typedef struct { extern genesis_context * genesis; extern int break_on_sync; +extern tern_node * config; uint16_t read_dma_value(uint32_t address); m68k_context * debugger(m68k_context * context, uint32_t address); -- cgit v1.2.3 From a75eb24bfbbf0dd3492c8414cfaafa0569a1539a Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Fri, 26 Jul 2013 19:55:04 -0700 Subject: Added support for saving savestates. Added gst savestate format test harness --- blastem.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 635794d..da7953a 100644 --- a/blastem.h +++ b/blastem.h @@ -31,7 +31,10 @@ typedef struct { extern genesis_context * genesis; extern int break_on_sync; +extern int save_state; extern tern_node * config; +extern uint8_t busreq; +extern uint8_t reset; uint16_t read_dma_value(uint32_t address); m68k_context * debugger(m68k_context * context, uint32_t address); -- cgit v1.2.3 From 2c302a78d201d9b594774cec505d14c22e03662c Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 10 Sep 2013 23:31:08 -0700 Subject: Added copyright notice to source files and added GPL license text in COPYING --- blastem.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index da7953a..68bccfd 100644 --- a/blastem.h +++ b/blastem.h @@ -1,3 +1,8 @@ +/* + Copyright 2013 Michael Pavone + This file is part of BlastEm. + BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. +*/ #ifndef BLASTEM_H_ #define BLASTEM_H_ -- cgit v1.2.3 From c4e2e0114cdc1871e959c67d0f15be99bef3459c Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 1 Oct 2013 23:51:16 -0700 Subject: Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button --- blastem.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 68bccfd..0ec7c61 100644 --- a/blastem.h +++ b/blastem.h @@ -1,6 +1,6 @@ /* Copyright 2013 Michael Pavone - This file is part of BlastEm. + This file is part of BlastEm. BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. */ #ifndef BLASTEM_H_ @@ -30,6 +30,8 @@ typedef struct { uint8_t *save_ram; uint32_t save_ram_mask; 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) uint8_t bank_regs[8]; io_port ports[3]; } genesis_context; @@ -43,6 +45,7 @@ extern uint8_t reset; uint16_t read_dma_value(uint32_t address); m68k_context * debugger(m68k_context * context, uint32_t address); +void set_speed_percent(genesis_context * context, uint32_t percent); #endif //BLASTEM_H_ -- cgit v1.2.3