summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/banctec.h
blob: 2c22608a1d8de6c30ceb5088d2e496ff814faa31 (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
// license:???
// copyright-holders:???
/*****************************************************************************
 *
 * includes/banctec.h
 *
 ****************************************************************************/

#ifndef BANCTEC_H_
#define BANCTEC_H_

#include "video/mc6845.h"

class banctec_state : public driver_device
{
public:
	banctec_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag),
		m_maincpu(*this, "maincpu"),
		m_gfxdecode(*this, "gfxdecode"),
		m_videoram(*this, "videoram") { }

	DECLARE_READ8_MEMBER(banctec_read);
	DECLARE_WRITE8_MEMBER(banctec_write);
	TILE_GET_INFO_MEMBER(get_bg_tile_info);
	MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr);
	virtual void machine_reset();
	virtual void video_start();
	UINT32 screen_update_banctec(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);

	required_device<cpu_device> m_maincpu;
	required_device<gfxdecode_device> m_gfxdecode;
	required_shared_ptr<UINT8> m_videoram;

	tilemap_t *m_bg_tilemap;
};

#endif /* BANCTEC_H_ */