From 504dbe7b1a843c84d5b2fe21d59821c6e9b47d6f Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Thu, 15 Feb 2018 19:05:05 +0100 Subject: devices/machine: some private-ization (nw) + removed some duplication --- src/devices/machine/ie15.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/devices/machine/ie15.h') diff --git a/src/devices/machine/ie15.h b/src/devices/machine/ie15.h index 82692cb0d65..715642e9665 100644 --- a/src/devices/machine/ie15.h +++ b/src/devices/machine/ie15.h @@ -40,8 +40,8 @@ public: DECLARE_WRITE8_MEMBER(write) { term_write(data); } - void ie15_io(address_map &map); - void ie15_mem(address_map &map); + DECLARE_WRITE_LINE_MEMBER(serial_rx_callback); + protected: ie15_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); @@ -59,11 +59,16 @@ protected: void term_write(uint8_t data) { m_serial_rx_char = data; m_serial_rx_ready = IE_FALSE; } +private: + static const device_timer_id TIMER_HBLANK = 0; + void scanline_callback(); + void update_leds(); + void draw_scanline(uint32_t *p, uint16_t offset, uint8_t scanline); + uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + void ie15core(machine_config &config); -public: DECLARE_WRITE16_MEMBER(kbd_put); - DECLARE_WRITE_LINE_MEMBER(serial_rx_callback); DECLARE_WRITE8_MEMBER(mem_w); DECLARE_READ8_MEMBER(mem_r); DECLARE_WRITE8_MEMBER(mem_addr_lo_w); @@ -88,12 +93,9 @@ public: DECLARE_WRITE8_MEMBER(serial_speed_w); TIMER_CALLBACK_MEMBER(ie15_beepoff); -private: - static const device_timer_id TIMER_HBLANK = 0; - void scanline_callback(); - void update_leds(); - void draw_scanline(uint32_t *p, uint16_t offset, uint8_t scanline); - uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); + void ie15_io(address_map &map); + void ie15_mem(address_map &map); + std::unique_ptr m_tmpbmp; emu_timer *m_hblank_timer; -- cgit v1.2.3-70-g09d2