summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/benshieng.h
blob: f68f94e618107f123cfc986214ebef7180a4d13c (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
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
#ifndef __NES_BENSHIENG_H
#define __NES_BENSHIENG_H

#include "nxrom.h"


// ======================> nes_benshieng_device

class nes_benshieng_device : public nes_nrom_device
{
public:
	// construction/destruction
	nes_benshieng_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);

	// device-level overrides
	virtual void device_start() override;
	virtual DECLARE_WRITE8_MEMBER(write_h) override;

	virtual void pcb_reset() override;

private:
	void update_banks();
	UINT8 m_dipsetting;
	UINT8 m_mmc_prg_bank[4];
	UINT8 m_mmc_vrom_bank[4];
};


// device type definition
extern const device_type NES_BENSHIENG;

#endif