comparison sms.h @ 1117:928a65750345

Initial support for Genesis/Megadrive PBC mode. VDP still needs Mode 4 to be useful.
author Michael Pavone <pavone@retrodev.com>
date Thu, 22 Dec 2016 19:51:25 -0800
parents
children 7e199bebde2f
comparison
equal deleted inserted replaced
1116:fe8c79f82c22 1117:928a65750345
1 #ifndef SMS_H_
2 #define SMS_H_
3
4 #include "system.h"
5 #include "vdp.h"
6 #include "psg.h"
7 #include "z80_to_x86.h"
8 #include "io.h"
9
10 #define SMS_RAM_SIZE (8*1024)
11
12 typedef struct {
13 system_header header;
14 z80_context *z80;
15 vdp_context *vdp;
16 psg_context *psg;
17 sega_io io;
18 uint32_t master_clock;
19 uint32_t normal_clock;
20 uint8_t should_return;
21 uint8_t ram[SMS_RAM_SIZE];
22 } sms_context;
23
24 sms_context *alloc_configure_sms(void *rom, uint32_t rom_size, void *extra_rom, uint32_t extra_rom_size, uint32_t opts, uint8_t force_region, rom_info *info_out);
25
26 #endif //SMS_H_