comparison segacd.h @ 1502:2564b6ba2e12 segacd

Initial skeleton of Sega CD memory handlers
author Michael Pavone <pavone@retrodev.com>
date Tue, 12 Dec 2017 09:44:33 -0800
parents d51230205405
children a763523dadf4
comparison
equal deleted inserted replaced
1472:d2d637dbacfb 1502:2564b6ba2e12
1 #ifndef SEGACD_H_
2 #define SEGACD_H_
3 #include <stdint.h>
4 #include "system.h"
5 #include "m68k_core.h"
6
7 typedef struct {
8 m68k_context *m68k;
9 system_media *media;
10 uint16_t gate_array[0x100];
11 uint8_t busreq;
12 uint8_t busack;
13 uint8_t reset;
14 uint16_t *rom; //unaltered ROM, needed for mirrored locations
15 uint16_t *rom_mut; //ROM with low 16-bit of HINT vector modified by register write
16 uint16_t *prog_ram;
17 uint16_t *work_ram;
18 uint8_t *pcm_ram;
19 uint8_t *bram;
20 } segacd_context;
21
22 segacd_context *alloc_configure_segacd(system_media *media, uint32_t opts, uint8_t force_region, rom_info *info);
23
24 #endif //SEGACD_H_