summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/m24_z8000.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/m24_z8000.h')
-rw-r--r--src/mame/machine/m24_z8000.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/machine/m24_z8000.h b/src/mame/machine/m24_z8000.h
index 9e2590701ef..8bb01b4a234 100644
--- a/src/mame/machine/m24_z8000.h
+++ b/src/mame/machine/m24_z8000.h
@@ -18,8 +18,6 @@ class m24_z8000_device : public device_t
public:
m24_z8000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- virtual const tiny_rom_entry *device_rom_region() const override;
- virtual machine_config_constructor device_mconfig_additions() const override;
template <class Object> static devcb_base &set_halt_callback(device_t &device, Object &&cb) { return downcast<m24_z8000_device &>(device).m_halt_out.set_callback(std::forward<Object>(cb)); }
DECLARE_READ16_MEMBER(pmem_r);
@@ -32,9 +30,6 @@ public:
DECLARE_WRITE8_MEMBER(serctl_w);
DECLARE_READ8_MEMBER(handshake_r);
DECLARE_WRITE8_MEMBER(handshake_w);
- DECLARE_WRITE_LINE_MEMBER(mo_w);
- DECLARE_WRITE_LINE_MEMBER(timer_irq_w);
- IRQ_CALLBACK_MEMBER(int_cb);
DECLARE_WRITE_LINE_MEMBER(halt_w) { m_z8000->set_input_line(INPUT_LINE_HALT, state); }
DECLARE_WRITE_LINE_MEMBER(int_w) { m_z8000->set_input_line(INPUT_LINE_IRQ1, state); }
@@ -44,6 +39,8 @@ public:
protected:
void device_start() override;
void device_reset() override;
+ virtual const tiny_rom_entry *device_rom_region() const override;
+ virtual void device_add_mconfig(machine_config &config) override;
private:
required_device<z8001_device> m_z8000;
@@ -54,6 +51,10 @@ private:
static const uint8_t dmem_table[16][4];
uint8_t m_handshake, m_irq;
bool m_z8000_halt, m_z8000_mem, m_timer_irq;
+
+ DECLARE_WRITE_LINE_MEMBER(mo_w);
+ DECLARE_WRITE_LINE_MEMBER(timer_irq_w);
+ IRQ_CALLBACK_MEMBER(int_cb);
};
extern const device_type M24_Z8000;