summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ripple_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ripple_counter.h')
-rw-r--r--src/devices/machine/ripple_counter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/machine/ripple_counter.h b/src/devices/machine/ripple_counter.h
index 5a4ad3e1295..450dc2118bb 100644
--- a/src/devices/machine/ripple_counter.h
+++ b/src/devices/machine/ripple_counter.h
@@ -11,20 +11,22 @@
#pragma once
+#include "dirom.h"
+
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> ripple_counter_device
-class ripple_counter_device : public device_t, public device_rom_interface
+class ripple_counter_device : public device_t, public device_rom_interface<14>
{
public:
// construction/destruction
ripple_counter_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
// configuration
- void set_stages(u8 stages) { m_count_mask = (1U << stages) - 1; set_rom_addr_width(stages); }
+ void set_stages(u8 stages) { m_count_mask = (1U << stages) - 1; override_address_width(stages); }
auto count_out_cb() { return m_count_out_cb.bind(); }
auto rom_out_cb() { return m_rom_out_cb.bind(); }