summaryrefslogtreecommitdiff
path: root/blastem.h
diff options
context:
space:
mode:
Diffstat (limited to 'blastem.h')
-rw-r--r--blastem.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/blastem.h b/blastem.h
index 23c62dd..7d051b6 100644
--- a/blastem.h
+++ b/blastem.h
@@ -14,10 +14,7 @@
#include "psg.h"
#include "io.h"
#include "config.h"
-
-#define RAM_FLAG_ODD 0x1800
-#define RAM_FLAG_EVEN 0x1000
-#define RAM_FLAG_BOTH 0x0000
+#include "romdb.h"
typedef struct {
m68k_context *m68k;
@@ -25,16 +22,20 @@ typedef struct {
vdp_context *vdp;
ym2612_context *ym;
psg_context *psg;
- uint8_t *save_ram;
+ uint8_t *save_storage;
+ eeprom_map *eeprom_map;
+ uint32_t num_eeprom;
+ uint32_t save_size;
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)
uint32_t frame_end;
uint32_t max_cycles;
uint8_t bank_regs[8];
+ uint8_t save_type;
io_port ports[3];
uint8_t bus_busy;
+ eeprom_state eeprom;
} genesis_context;
extern genesis_context * genesis;