summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/scotrsht.h
blob: 838000f7353f68c793b39b1abe27e4b5415bcc4e (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
class scotrsht_state : public driver_device
{
public:
	scotrsht_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) ,
		m_colorram(*this, "colorram"),
		m_videoram(*this, "videoram"),
		m_spriteram(*this, "spriteram"),
		m_scroll(*this, "scroll"){ }

	int m_irq_enable;
	required_shared_ptr<UINT8> m_colorram;
	required_shared_ptr<UINT8> m_videoram;
	required_shared_ptr<UINT8> m_spriteram;
	required_shared_ptr<UINT8> m_scroll;
	tilemap_t *m_bg_tilemap;
	int m_charbank;
	int m_palette_bank;
	DECLARE_WRITE8_MEMBER(ctrl_w);
	DECLARE_WRITE8_MEMBER(scotrsht_soundlatch_w);
	DECLARE_WRITE8_MEMBER(scotrsht_videoram_w);
	DECLARE_WRITE8_MEMBER(scotrsht_colorram_w);
	DECLARE_WRITE8_MEMBER(scotrsht_charbank_w);
	DECLARE_WRITE8_MEMBER(scotrsht_palettebank_w);
	TILE_GET_INFO_MEMBER(scotrsht_get_bg_tile_info);
};


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


PALETTE_INIT( scotrsht );
VIDEO_START( scotrsht );
SCREEN_UPDATE_IND16( scotrsht );