summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/pdp1/pdp1.h
diff options
context:
space:
mode:
author Miodrag Milanović <mmicko@gmail.com>2016-04-15 07:59:10 +0200
committer Miodrag Milanović <mmicko@gmail.com>2016-04-15 07:59:10 +0200
commiteac0b875233ac7d1a829dc71e9036d163f20b701 (patch)
tree82f92830a038130bddb8eb0d50cd9d3b2a7f43b3 /src/devices/cpu/pdp1/pdp1.h
parentd1f85d60f3371e8291e89d0b294a8997ce060c00 (diff)
parent34be7d416603f0601877f208e6250dae416a92b2 (diff)
Merge pull request #811 from ajrhacker/static_config
Eliminate device_t::static_config, a type-unsafe legacy feature. [AJR]
Diffstat (limited to 'src/devices/cpu/pdp1/pdp1.h')
-rw-r--r--src/devices/cpu/pdp1/pdp1.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/cpu/pdp1/pdp1.h b/src/devices/cpu/pdp1/pdp1.h
index 2cb01f5c20b..f6d742a2a4e 100644
--- a/src/devices/cpu/pdp1/pdp1.h
+++ b/src/devices/cpu/pdp1/pdp1.h
@@ -81,6 +81,8 @@ public:
// construction/destruction
pdp1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ static void static_set_reset_param(device_t &device, const pdp1_reset_param_t *param) { downcast<pdp1_device &>(device).m_reset_param = param; }
+
void pulse_start_clear();
void io_complete() { m_ios = 1; }
void pdp1_null_iot(int op2, int nac, int mb, int *io, int ac);
@@ -190,10 +192,15 @@ private:
void field_interrupt();
void execute_instruction();
+ const pdp1_reset_param_t *m_reset_param;
};
extern const device_type PDP1;
+#define MCFG_PDP1_RESET_PARAM(_param) \
+ pdp1_device::static_set_reset_param(*device, &(_param));
+
+
#endif /* __PDP1_H__ */