summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/sega8/ccatch.h
blob: 141d86fa3ed6619fdf080ab094cc11345801a68b (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 MAME_BUS_SEGA8_CCATCH_H
#define MAME_BUS_SEGA8_CCATCH_H

#pragma once

#include "sega8_slot.h"
#include "rom.h"

// ======================> sega8_cardcatch_device

class sega8_cardcatch_device : public sega8_rom_device
{
public:
	// construction/destruction
	sega8_cardcatch_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);

	// reading and writing
	virtual uint8_t read_cart(offs_t offset) override;
	virtual void write_cart(offs_t offset, uint8_t data) override;
	virtual void write_mapper(offs_t offset, uint8_t data) override {}

protected:
	virtual void device_add_mconfig(machine_config &config) override;

	required_device<sega8_card_slot_device> m_card;
};


// device type definition
DECLARE_DEVICE_TYPE(SEGA8_ROM_CARDCATCH, sega8_cardcatch_device)

#endif // MAME_BUS_SEGA8_CCATCH_H