summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/othldrby.h
blob: bdbdefd3ee778bbff953de45cd392c67d33f1b71 (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
41
42
43
44
45
46
47
48
49
50
51
52
/*************************************************************************

    Othello Derby

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

#define OTHLDRBY_VREG_SIZE   18

class othldrby_state : public driver_device
{
public:
	othldrby_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) { }

	/* memory pointers */
	UINT16 *     m_vram;
	UINT16 *     m_buf_spriteram;
	UINT16 *     m_buf_spriteram2;

	/* video-related */
	tilemap_t    *m_bg_tilemap[3];
	UINT16       m_vreg[OTHLDRBY_VREG_SIZE];
	UINT32       m_vram_addr;
	UINT32       m_vreg_addr;

	/* misc */
	int          m_toggle;
	DECLARE_READ16_MEMBER(othldrby_scanline_r);
	DECLARE_WRITE16_MEMBER(coinctrl_w);
	DECLARE_WRITE16_MEMBER(calendar_w);
	DECLARE_READ16_MEMBER(calendar_r);
	DECLARE_WRITE16_MEMBER(othldrby_videoram_addr_w);
	DECLARE_READ16_MEMBER(othldrby_videoram_r);
	DECLARE_WRITE16_MEMBER(othldrby_videoram_w);
	DECLARE_WRITE16_MEMBER(othldrby_vreg_addr_w);
	DECLARE_WRITE16_MEMBER(othldrby_vreg_w);
	DECLARE_WRITE16_MEMBER(oki_bankswitch_w);
	TILE_GET_INFO_MEMBER(get_tile_info0);
	TILE_GET_INFO_MEMBER(get_tile_info1);
	TILE_GET_INFO_MEMBER(get_tile_info2);
	virtual void machine_start();
	virtual void machine_reset();
	virtual void video_start();
};


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



SCREEN_VBLANK( othldrby );
SCREEN_UPDATE_IND16( othldrby );