diff options
author | 2013-11-02 19:53:13 +0000 | |
---|---|---|
committer | 2013-11-02 19:53:13 +0000 | |
commit | c9abc6c7fce72084685adc721b9b084393c0aaa0 (patch) | |
tree | 2f183c9cdfa2de61d1561a1a41c0c891becc5d11 /src/emu/machine/ds128x.h | |
parent | dfa26765d29cfdd40b314480b9702cc532138c54 (diff) |
Support for different sized MC146818 compatibles [smf]
Diffstat (limited to 'src/emu/machine/ds128x.h')
-rw-r--r-- | src/emu/machine/ds128x.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/emu/machine/ds128x.h b/src/emu/machine/ds128x.h new file mode 100644 index 00000000000..579e37942d4 --- /dev/null +++ b/src/emu/machine/ds128x.h @@ -0,0 +1,26 @@ +// license:MAME +// copyright-holders:smf +#ifndef __DS128X_H__ +#define __DS128X_H__ + +#include "mc146818.h" + +#define MCFG_DS12885_ADD(_tag) \ + MCFG_DEVICE_ADD(_tag, DS12885, XTAL_32_768kHz) + +// ======================> mc146818_device + +class ds12885_device : public mc146818_device +{ +public: + // construction/destruction + ds12885_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + +protected: + virtual int data_size() { return 128; } +}; + +// device type definition +extern const device_type DS12885; + +#endif |