summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds128x.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ds128x.h')
-rw-r--r--src/devices/machine/ds128x.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/devices/machine/ds128x.h b/src/devices/machine/ds128x.h
index 671d3ee0a6f..7ade1bfa431 100644
--- a/src/devices/machine/ds128x.h
+++ b/src/devices/machine/ds128x.h
@@ -5,10 +5,8 @@
#include "mc146818.h"
-#define MCFG_DS12885_ADD(_tag) \
- MCFG_DEVICE_ADD(_tag, DS12885, XTAL(32'768))
-// ======================> mc146818_device
+// ======================> ds12885_device
class ds12885_device : public mc146818_device
{
@@ -17,6 +15,8 @@ public:
ds12885_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 32'768);
protected:
+ ds12885_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
virtual int data_size() override { return 128; }
virtual int get_timer_bypass() override;
};
@@ -24,4 +24,23 @@ protected:
// device type definition
DECLARE_DEVICE_TYPE(DS12885, ds12885_device)
+// ======================> ds12885ext_device
+
+class ds12885ext_device : public ds12885_device
+{
+public:
+ // construction/destruction
+ ds12885ext_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 32'768);
+
+ // read/write access to extended ram
+ uint8_t read_extended(offs_t offset);
+ void write_extended(offs_t offset, uint8_t data);
+
+protected:
+ virtual int data_size() override { return 256; }
+};
+
+// device type definition
+DECLARE_DEVICE_TYPE(DS12885EXT, ds12885ext_device)
+
#endif // MAME_MACHINE_DS128X_H