summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/megadriv_rad.h
blob: 9dd0e0860f726968687e20e1fecd9d796f68151e (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
// license:BSD-3-Clause
// copyright-holders:David Haywood

#ifndef MAME_INCLUDES_MEGADRIV_RAD_H
#define MAME_INCLUDES_MEGADRIV_RAD_H

class megadriv_radica_state : public md_base_state
{
public:
	megadriv_radica_state(const machine_config &mconfig, device_type type, const char *tag)
		: md_base_state(mconfig, type, tag),
		m_bank(0),
		m_rom(*this, "maincpu")
	{}

	void init_megadriv_radica_6button_pal();
	void init_megadriv_radica_6button_ntsc();

	DECLARE_MACHINE_START(megadriv_radica_6button);
	DECLARE_MACHINE_START(megadriv_radica_3button);
	DECLARE_MACHINE_RESET(megadriv_radica);

	uint16_t read(offs_t offset);
	uint16_t read_a13(offs_t offset);

	void megadriv_radica_6button_ntsc(machine_config &config);
	void megadriv_radica_6button_pal(machine_config &config);
	void megadriv_radica_3button_ntsc(machine_config &config);
	void megadriv_radica_3button_pal(machine_config &config);

	void megadriv_radica_map(address_map &map);
private:
	int m_bank;
	required_region_ptr<uint16_t> m_rom;
};

#endif // MAME_INCLUDES_MEGADRIV_RAD_H