blob: a7907f15b6469fadbccb395382b22285feda6365 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/***************************************************************************
coco_multi.h
Multi-Pak interface emulation
***************************************************************************/
#pragma once
#ifndef __COCO_MULTI_H__
#define __COCO_MULTI_H__
#include "emu.h"
#include "machine/cococart.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> coco_multipak_device
class coco_multipak_device :
public device_t,
public device_cococart_interface
{
public:
// construction/destruction
coco_multipak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const;
virtual UINT8* get_cart_base();
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
virtual DECLARE_READ8_MEMBER(read);
virtual DECLARE_WRITE8_MEMBER(write);
private:
// device references
cococart_slot_device *m_owner;
cococart_slot_device *m_slots[4];
// internal state
UINT8 m_select;
// methods
DECLARE_WRITE8_MEMBER(ff7f_write);
cococart_slot_device *active_scs_slot(void);
cococart_slot_device *active_cts_slot(void);
void set_select(UINT8 new_select);
};
// device type definition
extern const device_type COCO_MULTIPAK;
#endif /* __COCO_MULTI_H__ */
|