1 // license:BSD-3-Clause 2 // copyright-holders:David Haywood 3 #ifndef MAME_INCLUDES_BFM_AD5_H 4 #define MAME_INCLUDES_BFM_AD5_H 5 6 #pragma once 7 8 #include "cpu/m68000/m68000.h" 9 10 11 class adder5_state : public driver_device 12 { 13 public: adder5_state(const machine_config & mconfig,device_type type,const char * tag)14 adder5_state(const machine_config &mconfig, device_type type, const char *tag) 15 : driver_device(mconfig, type, tag) 16 , m_maincpu(*this, "maincpu") 17 { } 18 19 void init_ad5(); 20 void bfm_ad5(machine_config &config); 21 22 protected: 23 INTERRUPT_GEN_MEMBER(ad5_fake_timer_int); 24 void ad5_map(address_map &map); 25 26 private: 27 // devices 28 required_device<cpu_device> m_maincpu; 29 }; 30 31 INPUT_PORTS_EXTERN( bfm_ad5 ); 32 33 #endif // MAME_INCLUDES_BFM_AD5_H 34