summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/battlera.h
blob: ffb57322d2b863c5469e6477e644f3765165919c (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
class battlera_state : public driver_device
{
public:
	battlera_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag),
		m_maincpu(*this, "maincpu")
		{ }

	int m_control_port_select;
	int m_msm5205next;
	int m_toggle;
	int m_HuC6270_registers[20];
	int m_VDC_register;
	int m_vram_ptr;
	UINT8 *m_HuC6270_vram;
	UINT8 *m_vram_dirty;
	bitmap_ind16 *m_tile_bitmap;
	bitmap_ind16 *m_front_bitmap;
	UINT32 m_tile_dirtyseq;
	int m_current_scanline;
	int m_inc_value;
	int m_irq_enable;
	int m_rcr_enable;
	int m_sb_enable;
	int m_bb_enable;
	int m_bldwolf_vblank;
	UINT8 m_blank_tile[32];

	required_device<cpu_device> m_maincpu;
	DECLARE_WRITE8_MEMBER(battlera_sound_w);
	DECLARE_WRITE8_MEMBER(control_data_w);
	DECLARE_READ8_MEMBER(control_data_r);
	DECLARE_WRITE8_MEMBER(battlera_adpcm_data_w);
	DECLARE_WRITE8_MEMBER(battlera_palette_w);
	DECLARE_READ8_MEMBER(HuC6270_debug_r);
	DECLARE_WRITE8_MEMBER(HuC6270_debug_w);
	DECLARE_READ8_MEMBER(HuC6270_register_r);
	DECLARE_WRITE8_MEMBER(HuC6270_register_w);
	DECLARE_READ8_MEMBER(HuC6270_data_r);
	DECLARE_WRITE8_MEMBER(HuC6270_data_w);
	DECLARE_WRITE8_MEMBER(battlera_adpcm_reset_w);
};


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

SCREEN_UPDATE_IND16( battlera );
VIDEO_START( battlera );
TIMER_DEVICE_CALLBACK( battlera_irq );