comparison blastem.h @ 883:9f149f0e98b7

It is now possible to switch back and forth between the menu ROM and the game
author Michael Pavone <pavone@retrodev.com>
date Fri, 13 Nov 2015 19:15:37 -0800
parents b6842dfb8edf
children 5e4fb650de58
comparison
equal deleted inserted replaced
882:75453bf2ffac 883:9f149f0e98b7
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 #include "romdb.h"
18 #include "arena.h"
18 19
19 typedef struct { 20 typedef struct {
20 m68k_context *m68k; 21 m68k_context *m68k;
21 z80_context *z80; 22 z80_context *z80;
22 vdp_context *vdp; 23 vdp_context *vdp;
23 ym2612_context *ym; 24 ym2612_context *ym;
24 psg_context *psg; 25 psg_context *psg;
26 uint16_t *cart;
25 uint16_t *work_ram; 27 uint16_t *work_ram;
26 uint8_t *zram; 28 uint8_t *zram;
27 void *extra; 29 void *extra;
30 arena *arena;
28 char *next_rom; 31 char *next_rom;
29 uint8_t *save_storage; 32 uint8_t *save_storage;
30 eeprom_map *eeprom_map; 33 eeprom_map *eeprom_map;
31 uint32_t num_eeprom; 34 uint32_t num_eeprom;
32 uint32_t save_size; 35 uint32_t save_size;
51 54
52 #define RAM_WORDS 32 * 1024 55 #define RAM_WORDS 32 * 1024
53 #define Z80_RAM_BYTES 8 * 1024 56 #define Z80_RAM_BYTES 8 * 1024
54 57
55 extern uint16_t *cart; 58 extern uint16_t *cart;
56 extern uint16_t ram[RAM_WORDS]; 59 extern uint16_t *ram;
57 extern uint8_t z80_ram[Z80_RAM_BYTES]; 60 extern uint8_t z80_ram[Z80_RAM_BYTES];
58 61
59 uint16_t read_dma_value(uint32_t address); 62 uint16_t read_dma_value(uint32_t address);
60 m68k_context * sync_components(m68k_context *context, uint32_t address); 63 m68k_context * sync_components(m68k_context *context, uint32_t address);
61 m68k_context * debugger(m68k_context * context, uint32_t address); 64 m68k_context * debugger(m68k_context * context, uint32_t address);