diff options
Diffstat (limited to 'src/mame/machine/cedar_magnet_plane.h')
-rw-r--r-- | src/mame/machine/cedar_magnet_plane.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/mame/machine/cedar_magnet_plane.h b/src/mame/machine/cedar_magnet_plane.h index 99cf6a5f37f..8e706ef6af8 100644 --- a/src/mame/machine/cedar_magnet_plane.h +++ b/src/mame/machine/cedar_magnet_plane.h @@ -15,16 +15,16 @@ class cedar_magnet_plane_device : public device_t, public cedar_magnet_board_int { public: // construction/destruction - cedar_magnet_plane_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + cedar_magnet_plane_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); - DECLARE_WRITE8_MEMBER(plane_portcc_w); - DECLARE_WRITE8_MEMBER(plane_portcd_w); - DECLARE_WRITE8_MEMBER(plane_portce_w); - DECLARE_WRITE8_MEMBER(plane_portcf_w); + void plane_portcc_w(u8 data); + void plane_portcd_w(u8 data); + void plane_portce_w(u8 data); + void plane_portcf_w(u8 data); INTERRUPT_GEN_MEMBER(vblank_irq); - uint32_t draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int palbase); + u32 draw(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int palbase); void cedar_magnet_plane_io(address_map &map); void cedar_magnet_plane_map(address_map &map); @@ -33,28 +33,28 @@ protected: virtual void device_start() override; private: - uint8_t m_framebuffer[0x10000]; + std::unique_ptr<u8[]> m_framebuffer; int m_curline; int m_lineoffset; - uint8_t m_pio0_pa_data; - uint8_t m_pio0_pb_data; - uint8_t m_scrollx; - uint8_t m_scrolly; + u8 m_pio0_pa_data; + u8 m_pio0_pb_data; + u8 m_scrollx; + u8 m_scrolly; int m_direction; - uint8_t m_cd_data; - uint8_t m_cf_data; + u8 m_cd_data; + u8 m_cf_data; - DECLARE_READ8_MEMBER(pio0_pa_r); - DECLARE_WRITE8_MEMBER(pio0_pa_w); + u8 pio0_pa_r(); + void pio0_pa_w(u8 data); // DECLARE_READ8_MEMBER(pio0_pb_r); - DECLARE_WRITE8_MEMBER(pio0_pb_w); + void pio0_pb_w(u8 data); // DECLARE_READ8_MEMBER(pio1_pa_r); - DECLARE_WRITE8_MEMBER(pio1_pa_w); + void pio1_pa_w(u8 data); // DECLARE_READ8_MEMBER(pio1_pb_r); - DECLARE_WRITE8_MEMBER(pio1_pb_w); + void pio1_pb_w(u8 data); }; #endif // MAME_MACHINE_CEDAR_MAGNET_PLANE_H |