summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mc68hc11/mc68hc11.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mc68hc11/mc68hc11.h')
-rw-r--r--src/devices/cpu/mc68hc11/mc68hc11.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/devices/cpu/mc68hc11/mc68hc11.h b/src/devices/cpu/mc68hc11/mc68hc11.h
index df8b05a4b27..c24417676f7 100644
--- a/src/devices/cpu/mc68hc11/mc68hc11.h
+++ b/src/devices/cpu/mc68hc11/mc68hc11.h
@@ -28,22 +28,21 @@
#define MC68HC11_IRQ_LINE 0
#define MC68HC11_TOC1_LINE 1
-
DECLARE_DEVICE_TYPE(MC68HC11, mc68hc11_cpu_device)
-
-#define MCFG_MC68HC11_CONFIG(_has_extended_io, _internal_ram_size, _init_value) \
- downcast<mc68hc11_cpu_device &>(*device).set_has_extended_io(_has_extended_io); \
- downcast<mc68hc11_cpu_device &>(*device).set_internal_ram_size(_internal_ram_size); \
- downcast<mc68hc11_cpu_device &>(*device).set_init_value(_init_value);
-
-
class mc68hc11_cpu_device : public cpu_device
{
public:
// construction/destruction
mc68hc11_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ void set_config(int has_extended_io, int internal_ram_size, int init_value)
+ {
+ set_has_extended_io(has_extended_io);
+ set_internal_ram_size(internal_ram_size);
+ set_init_value(init_value);
+ }
+
// I/O enable flag
void set_has_extended_io(int has_extended_io) { m_has_extended_io = has_extended_io; }
void set_internal_ram_size(int internal_ram_size) { m_internal_ram_size = internal_ram_size; }