1
#include "video/bufsprite.h"
1
3
class toki_state : public driver_device
4
6
toki_state(const machine_config &mconfig, device_type type, const char *tag)
5
: driver_device(mconfig, type, tag) { }
7
: driver_device(mconfig, type, tag),
8
m_spriteram(*this, "spriteram") ,
9
m_background1_videoram16(*this, "bg1_vram16"),
10
m_background2_videoram16(*this, "bg2_vram16"),
11
m_videoram(*this, "videoram"),
12
m_scrollram16(*this, "scrollram16"){ }
14
required_device<buffered_spriteram16_device> m_spriteram;
15
required_shared_ptr<UINT16> m_background1_videoram16;
16
required_shared_ptr<UINT16> m_background2_videoram16;
17
required_shared_ptr<UINT16> m_videoram;
18
required_shared_ptr<UINT16> m_scrollram16;
10
UINT16 *m_background1_videoram16;
11
UINT16 *m_background2_videoram16;
12
UINT16 *m_scrollram16;
13
22
tilemap_t *m_background_layer;
14
23
tilemap_t *m_foreground_layer;
15
24
tilemap_t *m_text_layer;
26
DECLARE_WRITE16_MEMBER(tokib_soundcommand16_w);
27
DECLARE_READ16_MEMBER(pip16_r);
28
DECLARE_WRITE8_MEMBER(toki_adpcm_data_w);
29
DECLARE_WRITE16_MEMBER(toki_control_w);
30
DECLARE_WRITE16_MEMBER(toki_foreground_videoram16_w);
31
DECLARE_WRITE16_MEMBER(toki_background1_videoram16_w);
32
DECLARE_WRITE16_MEMBER(toki_background2_videoram16_w);
19
36
/*----------- defined in video/toki.c -----------*/
21
38
VIDEO_START( toki );
22
SCREEN_VBLANK( toki );
23
SCREEN_VBLANK( tokib );
24
39
SCREEN_UPDATE_IND16( toki );
25
40
SCREEN_UPDATE_IND16( tokib );
26
WRITE16_HANDLER( toki_background1_videoram16_w );
27
WRITE16_HANDLER( toki_background2_videoram16_w );
28
WRITE16_HANDLER( toki_control_w );
29
WRITE16_HANDLER( toki_foreground_videoram16_w );