blob: 931d2388921283229b48be683830aa3ceb9bda1d (
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
39
40
41
42
43
44
45
|
// license:BSD-3-Clause
// copyright-holders:Nigel Barnes
#ifndef MAME_BUS_COCO_DRAGON_AMTOR_H
#define MAME_BUS_COCO_DRAGON_AMTOR_H
#pragma once
#include "cococart.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> dragon_amtor_device
class dragon_amtor_device :
public device_t,
public device_cococart_interface
{
public:
// construction/destruction
dragon_amtor_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
// optional information overrides
virtual const tiny_rom_entry *device_rom_region() const override;
virtual ioport_constructor device_input_ports() const override;
protected:
// device-level overrides
virtual void device_start() override;
virtual u8 *get_cart_base() override;
virtual memory_region *get_cart_memregion() override;
virtual u8 cts_read(offs_t offset) override;
private:
required_memory_region m_eprom;
required_ioport m_switch;
};
// device type definitions
DECLARE_DEVICE_TYPE(DRAGON_AMTOR, dragon_amtor_device)
#endif // MAME_BUS_COCO_DRAGON_AMTOR_H
|