comparison blastem.h @ 288:a8ee7934a1f8

Add a YM2612 stub implementation with just timers and status registers so that games that depend on it can run.
author Mike Pavone <pavone@retrodev.com>
date Sun, 05 May 2013 22:56:42 -0700
parents 209a37eed3e7
children 2f264d2a60c2
comparison
equal deleted inserted replaced
287:fb840e0a48cd 288:a8ee7934a1f8
1 #ifndef BLASTEM_H_ 1 #ifndef BLASTEM_H_
2 #define BLASTEM_H_ 2 #define BLASTEM_H_
3 3
4 #include <stdint.h> 4 #include <stdint.h>
5 #include "m68k_to_x86.h" 5 #include "m68k_to_x86.h"
6 #include "z80_to_x86.h"
7 #include "ym2612.h"
8 #include "vdp.h"
6 9
7 typedef struct { 10 typedef struct {
8 uint32_t th_counter; 11 uint32_t th_counter;
9 uint32_t timeout_cycle; 12 uint32_t timeout_cycle;
10 uint8_t output; 13 uint8_t output;
11 uint8_t control; 14 uint8_t control;
12 uint8_t input[3]; 15 uint8_t input[3];
13 } io_port; 16 } io_port;
17
18 typedef struct {
19 m68k_context *m68k;
20 z80_context *z80;
21 vdp_context *vdp;
22 ym2612_context *ym;
23 } genesis_context;
14 24
15 #define GAMEPAD_TH0 0 25 #define GAMEPAD_TH0 0
16 #define GAMEPAD_TH1 1 26 #define GAMEPAD_TH1 1
17 #define GAMEPAD_EXTRA 2 27 #define GAMEPAD_EXTRA 2
18 28