diff options
Diffstat (limited to 'src/mame/includes/orion.h')
-rw-r--r-- | src/mame/includes/orion.h | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/src/mame/includes/orion.h b/src/mame/includes/orion.h index 7c038011b23..3c2965bafec 100644 --- a/src/mame/includes/orion.h +++ b/src/mame/includes/orion.h @@ -52,13 +52,10 @@ public: , m_screen(*this, "screen") { } - void orionz80(machine_config &config); void orion128ms(machine_config &config); void orion128(machine_config &config); - void orionpro(machine_config &config); - void orionz80ms(machine_config &config); -private: +protected: DECLARE_READ8_MEMBER(orion128_system_r); DECLARE_WRITE8_MEMBER(orion128_system_w); DECLARE_READ8_MEMBER(orion128_romdisk_r); @@ -82,11 +79,8 @@ private: DECLARE_WRITE8_MEMBER(orionpro_io_w); DECLARE_MACHINE_START(orion128); DECLARE_MACHINE_RESET(orion128); - DECLARE_VIDEO_START(orion128); DECLARE_PALETTE_INIT(orion128); - DECLARE_MACHINE_START(orionz80); - DECLARE_MACHINE_RESET(orionz80); - DECLARE_MACHINE_RESET(orionpro); + virtual void video_start() override; uint32_t screen_update_orion128(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); INTERRUPT_GEN_MEMBER(orionz80_interrupt); DECLARE_READ8_MEMBER(orion_romdisk_porta_r); @@ -142,6 +136,33 @@ private: void orionz80_switch_bank(); void orion_set_video_mode(int width); void orionpro_bank_switch(); + virtual void machine_start() override; +}; + +class orion_z80_state : public orion_state +{ +public: + orion_z80_state(const machine_config &mconfig, device_type type, const char *tag) : + orion_state(mconfig, type, tag) {} + + void orionz80(machine_config &config); + void orionz80ms(machine_config &config); + +protected: + virtual void machine_start() override; + virtual void machine_reset() override; +}; + +class orion_pro_state : public orion_state +{ +public: + orion_pro_state(const machine_config &mconfig, device_type type, const char *tag) : + orion_state(mconfig, type, tag) {} + + void orionpro(machine_config &config); + +protected: + virtual void machine_reset() override; }; #endif // MAME_INCLUDES_ORION_H |