summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/special.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/special.h')
-rw-r--r--src/mame/includes/special.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/includes/special.h b/src/mame/includes/special.h
index 93efa62815d..c0b466829e9 100644
--- a/src/mame/includes/special.h
+++ b/src/mame/includes/special.h
@@ -30,8 +30,8 @@
class special_state : public driver_device
{
public:
- special_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ special_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_ppi(*this, "ppi8255"),
m_fdc(*this, "fd1793"),
@@ -49,7 +49,8 @@ public:
m_bank5(*this, "bank5"),
m_bank6(*this, "bank6"),
m_io_line(*this, "LINE%u", 0U),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette")
+ { }
void special(machine_config &config);
void erik(machine_config &config);
@@ -60,6 +61,9 @@ public:
void init_erik();
void init_special();
+protected:
+ virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
+
private:
enum
{
@@ -88,15 +92,12 @@ private:
DECLARE_WRITE8_MEMBER(specialist_8255_portc_w);
DECLARE_MACHINE_RESET(special);
- DECLARE_VIDEO_START(special);
DECLARE_MACHINE_RESET(erik);
- DECLARE_VIDEO_START(erik);
- DECLARE_PALETTE_INIT(erik);
- DECLARE_VIDEO_START(specialp);
+ void erik_palette(palette_device &palette) const;
DECLARE_MACHINE_START(specimx);
DECLARE_MACHINE_RESET(specimx);
DECLARE_VIDEO_START(specimx);
- DECLARE_PALETTE_INIT(specimx);
+ void specimx_palette(palette_device &palette) const;
uint32_t screen_update_special(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_erik(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_specialp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -141,7 +142,6 @@ private:
optional_memory_bank m_bank6;
required_ioport_array<13> m_io_line;
required_device<palette_device> m_palette;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
};
#endif // MAME_INCLUDES_SPECIAL_H