summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/cedar_magnet_sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/cedar_magnet_sprite.h')
-rw-r--r--src/mame/machine/cedar_magnet_sprite.h52
1 files changed, 25 insertions, 27 deletions
diff --git a/src/mame/machine/cedar_magnet_sprite.h b/src/mame/machine/cedar_magnet_sprite.h
index c0211a61e3f..3ca8be63d43 100644
--- a/src/mame/machine/cedar_magnet_sprite.h
+++ b/src/mame/machine/cedar_magnet_sprite.h
@@ -18,19 +18,19 @@ class cedar_magnet_sprite_device : public device_t, public cedar_magnet_board_in
{
public:
// construction/destruction
- cedar_magnet_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ cedar_magnet_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
- DECLARE_WRITE8_MEMBER(sprite_port80_w);
- DECLARE_WRITE8_MEMBER(sprite_port84_w);
- DECLARE_WRITE8_MEMBER(sprite_port88_w);
- DECLARE_WRITE8_MEMBER(sprite_port8c_w);
- DECLARE_WRITE8_MEMBER(sprite_port9c_w);
+ void sprite_port80_w(u8 data);
+ void sprite_port84_w(u8 data);
+ void sprite_port88_w(u8 data);
+ void sprite_port8c_w(u8 data);
+ void sprite_port9c_w(u8 data);
- DECLARE_READ8_MEMBER(exzisus_hack_r);
+ u8 exzisus_hack_r(offs_t offset);
INTERRUPT_GEN_MEMBER(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_sprite_io(address_map &map);
void cedar_magnet_sprite_map(address_map &map);
@@ -43,40 +43,38 @@ protected:
private:
void do_blit();
- uint8_t m_framebuffer[0x10000];
- uint8_t pio2_pb_data;
+ std::unique_ptr<u8[]> m_framebuffer;
+ u8 m_pio2_pb_data;
required_device<address_map_bank_device> m_sprite_ram_bankdev;
- uint8_t m_upperaddr;
- uint8_t m_loweraddr;
+ u8 m_upperaddr;
+ u8 m_loweraddr;
- uint8_t m_spritesize;
- uint8_t pio0_pb_data;
- uint8_t m_spritecodelow;
- uint8_t m_spritecodehigh;
+ u8 m_spritesize;
+ u8 m_pio0_pb_data;
+ u8 m_spritecodelow;
+ u8 m_spritecodehigh;
int m_high_write;
- uint8_t m_uppersprite;
+ u8 m_uppersprite;
- 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);
// DECLARE_READ8_MEMBER(pio2_pa_r);
- DECLARE_WRITE8_MEMBER(pio2_pa_w);
+ void pio2_pa_w(u8 data);
// DECLARE_READ8_MEMBER(pio2_pb_r);
- DECLARE_WRITE8_MEMBER(pio2_pb_w);
+ void pio2_pb_w(u8 data);
- required_device<z80pio_device> m_pio0;
- required_device<z80pio_device> m_pio1;
- required_device<z80pio_device> m_pio2;
+ required_device_array<z80pio_device, 3> m_pio;
};
#endif // MAME_MACHINE_CEDAR_MAGNET_SPRITE_H