summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/neogeo/mslugx.h
blob: 486eefe6ef80cfbf984b2f57ba7eb3083e02ee04 (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:BSD-3-Clause
// copyright-holders:S. Smith,David Haywood,Fabio Priuli
#ifndef MAME_BUS_NEOGEO_MSLUGX_H
#define MAME_BUS_NEOGEO_MSLUGX_H

#pragma once

#include "slot.h"
#include "rom.h"
#include "prot_mslugx.h"

// ======================> neogeo_mslugx_cart_device

class neogeo_mslugx_cart_device : public neogeo_rom_device
{
public:
	// construction/destruction
	neogeo_mslugx_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint16_t clock);

	// reading and writing
	virtual uint16_t protection_r(address_space &space, offs_t offset) override { return m_prot->protection_r(space, offset); }
	virtual void protection_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override { m_prot->protection_w(offset, data); }

protected:
	// device-level overrides
	virtual void device_start() override;
	virtual void device_reset() override;

	virtual void device_add_mconfig(machine_config &config) override;

	required_device<mslugx_prot_device> m_prot;
};


// device type definition
DECLARE_DEVICE_TYPE(NEOGEO_MSLUGX_CART, neogeo_mslugx_cart_device)

#endif // MAME_BUS_NEOGEO_MSLUGX_H