1 // license:BSD-3-Clause 2 // copyright-holders:Tomasz Slanina 3 /************************************************************************* 4 5 Taito O system 6 7 *************************************************************************/ 8 #ifndef MAME_INCLUDES_TAITO_O_H 9 #define MAME_INCLUDES_TAITO_O_H 10 11 #pragma once 12 13 #include "machine/timer.h" 14 #include "machine/watchdog.h" 15 #include "video/tc0080vco.h" 16 #include "emupal.h" 17 18 class taitoo_state : public driver_device 19 { 20 public: taitoo_state(const machine_config & mconfig,device_type type,const char * tag)21 taitoo_state(const machine_config &mconfig, device_type type, const char *tag) : 22 driver_device(mconfig, type, tag), 23 m_maincpu(*this, "maincpu"), 24 m_watchdog(*this, "watchdog"), 25 m_tc0080vco(*this, "tc0080vco"), 26 m_palette(*this, "palette"), 27 m_io_in(*this, "IN%u", 0U) 28 { } 29 30 void parentj(machine_config &config); 31 32 protected: 33 virtual void machine_start() override; 34 35 private: 36 /* devices */ 37 required_device<cpu_device> m_maincpu; 38 required_device<watchdog_timer_device> m_watchdog; 39 required_device<tc0080vco_device> m_tc0080vco; 40 required_device<palette_device> m_palette; 41 42 required_ioport_array<2> m_io_in; 43 44 void io_w(offs_t offset, u16 data, u16 mem_mask = ~0); 45 u16 io_r(offs_t offset, u16 mem_mask = ~0); 46 u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); 47 TIMER_DEVICE_CALLBACK_MEMBER(parentj_interrupt); 48 void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority); 49 void parentj_map(address_map &map); 50 }; 51 52 #endif // MAME_INCLUDES_TAITO_O_H 53