blob: caf488a596a60e4a61847ca5d1b93cfc3fe89450 (
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
|
/*************************************************************************
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();
UINT32 screen_update_othldrby(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void screen_eof_othldrby(screen_device &screen, bool state);
};
|