comparison blastem.h @ 769:4638b88bc72d

Initial work on I2C EEPROM implementation
author Michael Pavone <pavone@retrodev.com>
date Fri, 10 Jul 2015 18:46:18 -0700
parents ea525f600b1d
children cbf97d335444
comparison
equal deleted inserted replaced
768:2f48a3c187c6 769:4638b88bc72d
12 #include "ym2612.h" 12 #include "ym2612.h"
13 #include "vdp.h" 13 #include "vdp.h"
14 #include "psg.h" 14 #include "psg.h"
15 #include "io.h" 15 #include "io.h"
16 #include "config.h" 16 #include "config.h"
17 #include "romdb.h"
17 18
18 typedef struct { 19 typedef struct {
19 m68k_context *m68k; 20 m68k_context *m68k;
20 z80_context *z80; 21 z80_context *z80;
21 vdp_context *vdp; 22 vdp_context *vdp;
22 ym2612_context *ym; 23 ym2612_context *ym;
23 psg_context *psg; 24 psg_context *psg;
24 uint8_t *save_storage; 25 uint8_t *save_storage;
26 eeprom_map *eeprom_map;
27 uint32_t num_eeprom;
25 uint32_t save_size; 28 uint32_t save_size;
26 uint32_t save_ram_mask; 29 uint32_t save_ram_mask;
27 uint32_t master_clock; //Current master clock value 30 uint32_t master_clock; //Current master clock value
28 uint32_t normal_clock; //Normal master clock (used to restore master clock after turbo mode) 31 uint32_t normal_clock; //Normal master clock (used to restore master clock after turbo mode)
29 uint32_t frame_end; 32 uint32_t frame_end;
30 uint32_t max_cycles; 33 uint32_t max_cycles;
31 uint8_t bank_regs[8]; 34 uint8_t bank_regs[8];
32 uint8_t save_type; 35 uint8_t save_type;
33 io_port ports[3]; 36 io_port ports[3];
34 uint8_t bus_busy; 37 uint8_t bus_busy;
38 eeprom_state eeprom;
35 } genesis_context; 39 } genesis_context;
36 40
37 extern genesis_context * genesis; 41 extern genesis_context * genesis;
38 extern int headless; 42 extern int headless;
39 extern int break_on_sync; 43 extern int break_on_sync;