blob: bd39245a5c1d0847f3d673498186fc8535ee728d (
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
|
/*****************************************************************************
MB14241 shifter IC emulation
*****************************************************************************/
#ifndef __MB14241_H__
#define __MB14241_H__
#include "devlegcy.h"
class mb14241_device : public device_t
{
public:
mb14241_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~mb14241_device() { global_free(m_token); }
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
protected:
// device-level overrides
virtual void device_config_complete();
virtual void device_start();
virtual void device_reset();
private:
// internal state
void *m_token;
};
extern const device_type MB14241;
/***************************************************************************
DEVICE CONFIGURATION MACROS
***************************************************************************/
#define MCFG_MB14241_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, MB14241, 0)
/***************************************************************************
DEVICE I/O FUNCTIONS
***************************************************************************/
WRITE8_DEVICE_HANDLER ( mb14241_shift_count_w );
WRITE8_DEVICE_HANDLER ( mb14241_shift_data_w );
READ8_DEVICE_HANDLER( mb14241_shift_result_r );
#endif /* __MB14241_H__ */
|