summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/simpl156.h
blob: 5cf3ec4a037faaaf6f9504fbc139447936d7bb68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*************************************************************************

    Simple 156 based board

*************************************************************************/

#include "machine/eeprom.h"
#include "sound/okim6295.h"
#include "video/deco16ic.h"

class simpl156_state
{
public:
	static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, simpl156_state(machine)); }

	simpl156_state(running_machine &machine) 
		: maincpu(machine.device<cpu_device>("maincpu")),
		  deco16ic(machine.device<deco16ic_device>("deco_custom")),
		  eeprom(machine.device<eeprom_device>("eeprom")),
		  okimusic(machine.device<okim6295_device>("okimusic")) { }

	/* memory pointers */
	UINT16 *  pf1_rowscroll;
	UINT16 *  pf2_rowscroll;
	UINT32 *  mainram;
	UINT32 *  systemram;

	/* devices */
	cpu_device *maincpu;
	deco16ic_device *deco16ic;
	eeprom_device *eeprom;
	okim6295_device *okimusic;
};



/*----------- defined in video/simpl156.c -----------*/

VIDEO_START( simpl156 );
VIDEO_UPDATE( simpl156 );