diff options
Diffstat (limited to 'src/mame/drivers/rc702.cpp')
-rw-r--r-- | src/mame/drivers/rc702.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/rc702.cpp b/src/mame/drivers/rc702.cpp index 42f71a295eb..3f4984c0f63 100644 --- a/src/mame/drivers/rc702.cpp +++ b/src/mame/drivers/rc702.cpp @@ -64,8 +64,10 @@ public: void init_rc702(); -private: +protected: virtual void machine_reset() override; + +private: DECLARE_READ8_MEMBER(memory_read_byte); DECLARE_WRITE8_MEMBER(memory_write_byte); DECLARE_WRITE8_MEMBER(port14_w); @@ -78,7 +80,7 @@ private: DECLARE_WRITE_LINE_MEMBER(qbar_w); DECLARE_WRITE_LINE_MEMBER(dack1_w); I8275_DRAW_CHARACTER_MEMBER(display_pixels); - DECLARE_PALETTE_INIT(rc702); + void rc702_palette(palette_device &palette) const; void kbd_put(u8 data); void rc702_io(address_map &map); @@ -243,7 +245,7 @@ WRITE8_MEMBER( rc702_state::port1c_w ) } // monitor is orange even when powered off -PALETTE_INIT_MEMBER(rc702_state, rc702) +void rc702_state::rc702_palette(palette_device &palette) const { palette.set_pen_color(0, rgb_t(0xc0, 0x60, 0x00)); palette.set_pen_color(1, rgb_t(0xff, 0xb4, 0x00)); @@ -389,13 +391,12 @@ MACHINE_CONFIG_START(rc702_state::rc702) crtc.irq_wr_callback().set(m_7474, FUNC(ttl7474_device::clear_w)).invert(); crtc.irq_wr_callback().append(m_ctc1, FUNC(z80ctc_device::trg2)); crtc.drq_wr_callback().set(FUNC(rc702_state::crtc_drq_w)); - MCFG_PALETTE_ADD("palette", 2) - MCFG_PALETTE_INIT_OWNER(rc702_state, rc702) + + PALETTE(config, m_palette, FUNC(rc702_state::rc702_palette), 2); /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("beeper", BEEP, 1000) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) + BEEP(config, m_beep, 1000).add_route(ALL_OUTPUTS, "mono", 0.50); MACHINE_CONFIG_END |