blob: 27f7cef19b0b48f227ec68fd0b3401f86b08de18 (
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
46
47
48
49
|
// license:BSD-3-Clause
// copyright-holders:TwistedTom
/*********************************************************************
MICRO-POKEer
(Micro-Studio, Hungary 1988-1989)
*********************************************************************/
#ifndef MAME_BUS_SPECTRUM_MPOKER_H
#define MAME_BUS_SPECTRUM_MPOKER_H
#include "exp.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class spectrum_mpoker_device : public device_t, public device_spectrum_expansion_interface
{
public:
// construction/destruction
spectrum_mpoker_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
DECLARE_INPUT_CHANGED_MEMBER(freeze_button);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// optional information overrides
virtual const tiny_rom_entry *device_rom_region() const override;
virtual ioport_constructor device_input_ports() const override;
virtual uint8_t mreq_r(offs_t offset) override;
virtual void iorq_w(offs_t offset, uint8_t data) override;
virtual DECLARE_READ_LINE_MEMBER(romcs) override;
required_memory_region m_rom;
int m_romcs;
};
// device type definition
DECLARE_DEVICE_TYPE(SPECTRUM_MPOKER, spectrum_mpoker_device)
#endif // MAME_BUS_SPECTRUM_MPOKER_H
|